Skip to content

Suggestion about the description that "A type that conforms to the Sendable protocol is a thread-safe type" #2482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions proposals/0430-transferring-parameters-and-results.md
Original file line number Diff line number Diff line change
@@ -157,9 +157,10 @@ public func withCheckedContinuation<T>(

### Sendable Values and Sendable Types

A type that conforms to the `Sendable` protocol is a thread-safe type: values of
that type can be shared with and used safely from multiple concurrent contexts
at once without causing data races. If a value does not conform to `Sendable`,
A type that conforms to the `Sendable` protocol can be used safely from multiple
concurrent contexts at once without causing data races since values of
that type can be shared with in a thread-safe way or transferred by copying them
to avoid sharing. If a value does not conform to `Sendable`,
Swift must ensure that the value is never used concurrently. The value can still
be sent between concurrent contexts, but the send must be a complete transfer of
the value's entire region implying that all uses of the value (and anything