Developers
Swift and concurrency
- Swift 6 migration guide: strict concurrency, module by module How to move an app to the Swift 6 language mode: checking levels, per-module order, the common errors and their fixes, @preconcurrency and dependencies.
- Swift actors and Sendable explained: reentrancy, sending and Mutex How actors, global actors, Sendable, the sending keyword and Mutex protect state in Swift 6, and how to decide when a class should be an actor.
- Swift approachable concurrency: default MainActor, nonsending and @concurrent What Swift 6.2 approachable concurrency changes in app code: MainActor by default, nonisolated(nonsending), @concurrent, isolated conformances, and 6.3 and 6.4.
- Swift macros practical guide: when to write one and what it costs When Swift macros are worth it, freestanding versus attached roles, building one with SwiftSyntax, and the build-time cost of swift-syntax and its prebuilt binaries.
- Swift structured concurrency: async let, task groups and cancellation When to use async let, task groups and discarding task groups, how cancellation really works, Task versus Task.detached, priorities and AsyncStream in Swift 6.
- Swift typed throws: when to use them, and error handling for apps How typed throws (SE-0413) work, when they help and when plain throws is better, how Result fits in, and how to design errors you can show users.