#93: Sendable in Swift

Sendable is Swift’s way of talking about values that can safely move between concurrent contexts.

struct Message: Sendable {
    let id: Int
    let text: String
}

Value types with sendable stored properties often conform automatically, while reference types need more care.

You will mostly notice Sendable when working with actors and structured concurrency, where it helps the compiler catch unsafe sharing.


I'm also on Twitter and GitHub.

Subscribe via RSS.