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 1919/// All of the following can be marked as sendable:
2020///
2121/// - Value types
22- /// - References to immutable reference types
22+ /// - Reference types with no mutable storage
2323/// - Reference types that internally manage access to their state
24- /// - Functions and closures
24+ /// - Functions and closures (via `@Sendable`)
2525///
2626/// Although this protocol doesn't have any required methods or properties,
2727/// it does have semantic requirements that are enforced at compile time.
3131///
3232/// To declare conformance to `Sendable` without any compiler enforcement,
3333/// 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 .
3535/// Unchecked conformance to `Sendable` also disables enforcement
3636/// of the rule that conformance must be in the same file.
3737///
You can’t perform that action at this time.
0 commit comments