mirror of
https://github.com/Jeuners/ECC.git
synced 2026-09-09 23:12:30 +02:00
fix(skills): add Approachable Concurrency build settings note to PhotoProcessor example
This commit is contained in:
parent
0a770caf84
commit
c91636185d
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue