Swift Concurrency
Installation
SKILL.md
Swift Concurrency
Priority: P0
Implementation Guidelines
async/await
- Async Functions: Mark with
async, call withawait. - Error Handling: Combine with
throwsfor async throwing functions. - No Completion Handlers: Prefer
asyncover callback-based APIs.
Actors
- Data Isolation: Use
actorfor mutable state accessed from multiple tasks. - MainActor: Annotate UI code with
@MainActorfor main thread execution. - Actor Isolation: All actor properties/methods are isolated automatically.