swift-concurrency-updates
Swift 6.2 concurrency updates including default MainActor inference, @concurrent for background work, isolated conformances, and approachable concurrency migration. Use when adopting Swift 6.2 concurrency features or fixing data-race errors.
npx skills add rshankras/claude-code-apple-skills --skill concurrency --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Swift 6.2 Concurrency Updates Swift 6.2 introduces "Approachable Concurrency" -- a set of changes that make strict concurrency dramatically easier to adopt. Code runs on `@MainActor` by default, async functions stay on the calling actor, and you explicitly request background execution with `@concurrent`. This skill covers only the Swift 6.2 specific changes. For general concurrency patterns (actors, TaskGroup, AsyncSequence, Sendable, cancellation), see the `swift/concurrency-patterns` skill. ## When This Skill Activates - User is adopting Swift 6.2 concurrency features - User asks about default MainActor inference or the "infer main actor" build setting - User encounters data-race errors that Swift 6.2 resolves - User asks about `@concurrent`, isolated conformances, or approachable concurrency - User wants to migrate from Swift 6.0/6.1 strict concurrency to 6.2 - User asks how async functions behave differently in Swift 6.2 - User needs to offload CPU-intensive work to a background thread in Swift 6.2 ## What Changed in Swift 6.2 vs Before ### Swift 6.2 Changes at a Glance | Feature | Before (6.0/6.1) | After (6.2) | |---------|------------------|-------------| | Default isolati
- When This Skill Activates
- What Changed in Swift 6.2 vs Before
- Swift 6.2 Changes at a Glance
- 1. Async Functions Stay on the Calling Actor
- 2. Default MainActor Inference Mode
- Enabling It
- When to Use Default MainActor Inference
- Opting Out with nonisolated
- 3. Isolated Conformances
- 4. @concurrent -- Explicit Background Execution
- Steps to Offload Work
- @concurrent vs Task.detached vs actor
- When NOT to Use @concurrent
- 5. Migration Guide
What does the swift-concurrency-updates skill do?
Swift 6.2 concurrency updates including default MainActor inference, @concurrent for background work, isolated conformances, and approachable concurrency migration. Use when adopting Swift 6.2 concurrency features or fixing data-race errors.
How do I install it?
Run `npx skills add rshankras/claude-code-apple-skills --skill concurrency --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
