What problem does it solve?
Swift 6.2 introduces a concurrency model that can lead to data races when code implicitly offloads work to background threads. By running most code on the calling actor by default, this Skill helps you write safer, more predictable concurrency patterns.
Core Features & Use Cases
- Single-threaded by default: Keep code simple and race-free; concurrency is opt-in.
- Isolated conformances: MainActor types can safely conform to non-isolated protocols.
- Explicit @concurrent for background work: Offload only CPU-intensive tasks when needed.
- MainActor default inference mode: Reduce boilerplate by inferring actor isolation.
- Global/state safety: Protect static/stateful code with explicit actor isolation.
- Migration-friendly: Provides a path to adopt concurrency features incrementally.
Quick Start
Enable MainActor default inference and begin migrating code to isolated conformances and selective @concurrent offloading.