What problem does it solve?
Migrate Swift codebases to Swift 6.2's approachable concurrency model to eliminate surprising implicit background offloading and prevent compile-time and runtime data races while preserving performance.
Core Features & Use Cases
- Single-threaded-by-default patterns: Guidance on writing code that stays on the calling actor and avoids accidental cross-thread access.
- Isolated conformances: How to safely declare MainActor-isolated protocol conformances and where those conformances are valid.
- Explicit background offload via @concurrent: When and how to mark expensive, CPU-bound functions for parallel execution while protecting shared state.
- Migration & build guidance: Steps for enabling MainActor default inference, required Xcode/SPM settings, and testing strategies for incremental adoption.
- Use case example: Converting UI-centric image processing pipelines to stay on MainActor by default and only offload heavy extraction tasks with @concurrent.
Quick Start
Use the swift-concurrency-6-2 skill to audit a Swift 6.1 codebase, enable MainActor defaults, and identify functions to mark with @concurrent to resolve data-race errors.