mirror of
https://github.com/affaan-m/everything-claude-code.git
synced 2026-04-08 18:33:28 +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`:
|
When you need actual parallelism, explicitly offload with `@concurrent`:
|
||||||
|
|
||||||
```swift
|
```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 {
|
nonisolated final class PhotoProcessor {
|
||||||
private var cachedStickers: [String: Sticker] = [:]
|
private var cachedStickers: [String: Sticker] = [:]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user