We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4e6a7e commit 652def0Copy full SHA for 652def0
README.md
@@ -34,8 +34,10 @@ This allows actors to synchronously start continuations and mutate their isolate
34
35
```swift
36
let val: String = await withIdentifiableContinuation(isolation: self) {
37
+ // exectured within actor isolation so can immediatley mutate actor state
38
continuations[$0.id] = $0
39
} onCancel: { id in
40
+ // @Sendable closure executed outside of actor isolation requires `await` to mutate actor state
41
Task { await self.cancelContinuation(with: id) }
42
}
43
```
0 commit comments