File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 19
19
/// All of the following can be marked as sendable:
20
20
///
21
21
/// - Value types
22
- /// - References to immutable reference types
22
+ /// - Reference types with no mutable storage
23
23
/// - Reference types that internally manage access to their state
24
- /// - Functions and closures
24
+ /// - Functions and closures (via `@Sendable`)
25
25
///
26
26
/// Although this protocol doesn't have any required methods or properties,
27
27
/// it does have semantic requirements that are enforced at compile time.
31
31
///
32
32
/// To declare conformance to `Sendable` without any compiler enforcement,
33
33
/// write `@unchecked Sendable`.
34
- /// You are responsible for the correctness of unchecked sendable types.
34
+ /// You are responsible for the correctness of unchecked sendable types, for example, by protecting all access to its state with a lock or a queue .
35
35
/// Unchecked conformance to `Sendable` also disables enforcement
36
36
/// of the rule that conformance must be in the same file.
37
37
///
You can’t perform that action at this time.
0 commit comments