mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-03-30 13:43:26 +08:00
fix(skills): add Approachable Concurrency build settings note to PhotoProcessor example
This commit is contained in:
@@ -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] = [:]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user