Skip to main content
Back to registry

swift-concurrency-6-2

affaan-m/everything-claude-code

Patterns for adopting Swift 6.2's concurrency model where code runs single-threaded by default and concurrency is introduced explicitly. Eliminates common data-race errors without sacrificing performance.

Installs485
Install command
npx skills add https://github.com/affaan-m/everything-claude-code --skill swift-concurrency-6-2
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Patterns for adopting Swift 6.2's concurrency model where code runs single-threaded by default and concurrency is introduced explicitly. Eliminates common data-race errors without sacrificing performance. In Swift 6.1 and earlier, async functions could be implicitly offloaded to background threads, causing data-race errors even in seemingly safe code: Swift 6.2 fixes this: async functions stay on the calling actor by default. MainActor types can now conform to non-isolated protocols safely: The compiler ensures the conformance is only used on the main actor: Protect global/static state with MainActor: Swift 6.2 introduces a mode where MainActor is inferred by default — no manual annotations needed: This mode is opt-in and recommended for apps, scripts, and other executable targets. When you need actual parallelism, explicitly offload with @concurrent : Important: This example requires Approachable Concurrency build settings — SE-0466 (MainActor default isolation) and SE-0461 (NonisolatedNonsendingByDefault). With these enabled, extractSticker stays on the caller's actor, making mutable state access safe. Without these settings, this code has a data race — the compiler will flag it. To use @concurrent : - Migrating Swift 5.x or 6.0/6.1 projects to Swift 6.2 - Resolving data-race safety compiler errors - Designing MainActor-based app architecture - Offloading CPU-intensive work...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does swift-concurrency-6-2 do?

Patterns for adopting Swift 6.2's concurrency model where code runs single-threaded by default and concurrency is introduced explicitly. Eliminates common data-race errors without sacrificing performance.

Is swift-concurrency-6-2 good?

swift-concurrency-6-2 does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does swift-concurrency-6-2 work with?

swift-concurrency-6-2 currently lists compatibility with codex, gemini-cli, opencode, cursor, kimi-cli, amp.

What are alternatives to swift-concurrency-6-2?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install swift-concurrency-6-2?

npx skills add https://github.com/affaan-m/everything-claude-code --skill swift-concurrency-6-2

Related skills

More from affaan-m/everything-claude-code

Related skills

Alternatives in Software Engineering