Loading...
Loading...
Use when writing async/await code, enabling strict concurrency, fixing Sendable errors, migrating from completion handlers, managing shared state with actors, or using Task/TaskGroup for concurrency.
npx skill4agent add johnrogers/claude-swift-engineering modern-swift| Need | Use | NOT |
|---|---|---|
| Async operation | | Completion handlers |
| Main thread work | | |
| Shared mutable state | | Locks, serial queues |
| Parallel tasks | | |
| Thread safety | | |
asyncawait@MainActoractorTask.isCancelledTask.checkCancellation()| Reference | Load When |
|---|---|
| Concurrency Essentials | Writing async code, converting completion handlers, using |
| Swift 6 Concurrency | Using |
| Task Groups | Running multiple async operations in parallel |
| Task Cancellation | Implementing long-running or cancellable operations |
| Strict Concurrency | Enabling Swift 6 strict mode or fixing Sendable errors |
| Macros | Using or understanding Swift macros like |
| Modern Attributes | Migrating legacy code or using |
| Migration Patterns | Modernizing delegate patterns or UIKit views |
@unchecked Sendable@unchecked Sendable@uncheckedawaitawaitTask.isCancelledTask.checkCancellation()selfweakself[weak self].taskTask.isCancelledTask.checkCancellation()@MainActor@Published@MainActor@MainActorawaitawait