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 86
86
/// or by writing `@Sendable` before the closure's parameters ---
87
87
/// for example:
88
88
///
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
+ /// }
95
95
/// }
96
- /// }
97
- /// ```
98
96
///
99
97
/// ### Sendable Tuples
100
98
///
108
106
///
109
107
/// Use an unchecked conformance to `Sendable` instead --- for example:
110
108
///
111
- /// ```
112
- /// struct MyStructure: @unchecked Sendable { ... }
113
- /// ```
109
+ /// struct MyStructure: @unchecked Sendable { ... }
114
110
@available ( * , deprecated, message: " Use @unchecked Sendable instead " )
115
111
@_marker public protocol UnsafeSendable : Sendable { }
116
112
You can’t perform that action at this time.
0 commit comments