mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-10 17:59:43 +08:00
fix(skills): add Approachable Concurrency build settings note to PhotoProcessor example
This commit is contained in:
parent
0a770caf84
commit
c91636185d
@ -137,6 +137,9 @@ This mode is opt-in and recommended for apps, scripts, and other executable targ
|
||||
When you need actual parallelism, explicitly offload with `@concurrent`:
|
||||
|
||||
```swift
|
||||
// Assumes Approachable Concurrency build settings are enabled:
|
||||
// SE-0466 (MainActor default isolation) and SE-0461 (NonisolatedNonsendingByDefault).
|
||||
// Safe mutation of cachedStickers via await depends on these compiler options.
|
||||
nonisolated final class PhotoProcessor {
|
||||
private var cachedStickers: [String: Sticker] = [:]
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user