File tree Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Expand file tree Collapse file tree 1 file changed +7
-11
lines changed Original file line number Diff line number Diff line change 8686/// or by writing `@Sendable` before the closure's parameters ---
8787/// for example:
8888///
89- /// ```
90- /// let sendableClosure = { @Sendable (number: Int) -> String in
91- /// if number > 12 {
92- /// return "More than a dozen."
93- /// } else {
94- /// return "Less than a dozen"
89+ /// let sendableClosure = { @Sendable (number: Int) -> String in
90+ /// if number > 12 {
91+ /// return "More than a dozen."
92+ /// } else {
93+ /// return "Less than a dozen"
94+ /// }
9595/// }
96- /// }
97- /// ```
9896///
9997/// ### Sendable Tuples
10098///
108106///
109107/// Use an unchecked conformance to `Sendable` instead --- for example:
110108///
111- /// ```
112- /// struct MyStructure: @unchecked Sendable { ... }
113- /// ```
109+ /// struct MyStructure: @unchecked Sendable { ... }
114110@available ( * , deprecated, message: " Use @unchecked Sendable instead " )
115111@_marker public protocol UnsafeSendable : Sendable { }
116112
You can’t perform that action at this time.
0 commit comments