Skip to content

Commit 0089134

Browse files
Apply suggestions from tech review
Co-authored-by: Doug Gregor <[email protected]>
1 parent 6c443e5 commit 0089134

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/public/core/Sendable.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
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.
@@ -31,7 +31,7 @@
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
///

0 commit comments

Comments
 (0)