Back to Provenance

Reference Index

.agents/skills/swift-concurrency/references/_index.md

3.3.11.9 KB
Original Source

Reference Index

Quick navigation for the Swift Concurrency skill.

Foundations

FileUse it for
async-await-basics.mdclosure-to-async bridges and foundational async/await usage
tasks.mdTask, cancellation, task groups, structured vs unstructured work
actors.mdactor isolation, @MainActor, reentrancy, isolated conformances
sendable.mdSendable, @Sendable, region isolation, escape hatches
threading.mdexecution model, suspension points, Swift 6.2 isolation behavior

Streams

FileUse it for
async-sequences.mddeciding between AsyncSequence, AsyncStream, and one-shot async APIs
async-algorithms.mddebounce, throttle, merge, combineLatest, channels, timers

Applied Topics

FileUse it for
testing.mdSwift Testing first, XCTest fallback, leak checks
performance.mdInstruments workflow, actor hops, suspension cost
memory-management.mdretain cycles, long-lived tasks, cleanup
core-data.mdNSManagedObjectID, perform, default isolation conflicts

Migration and Tooling

FileUse it for
migration.mdrollout order, build settings, migration guardrails
linting.mdconcurrency-focused lint rules
glossary.mdquick definitions

Problem Router

  • "I need to fix a compiler error quickly" → ../SKILL.md
  • "I need to replace a callback with async/await" → async-await-basics.md
  • "I need to protect shared mutable state" → actors.md
  • "I need to pass data safely across boundaries" → sendable.md
  • "I need stream operators" → async-algorithms.md
  • "I need to understand why code runs where it runs" → threading.md
  • "I need to stop a leak or lifetime issue" → memory-management.md
  • "I need to migrate to Swift 6" → migration.md
  • "I need to test async code" → testing.md
  • "I need to optimize slow async code" → performance.md