You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> The above is also compatible in Swift 5 language mode using a Swift 6 compiler e.g. Xcode 16
45
45
46
-
## Swift 5
47
-
48
-
While behaviour is identical, Swift 5 compilers (Xcode 15) are unable to inherit actor isolation through the new `#isolation` keyword ([SE-420](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0420-inheritance-of-actor-isolation.md)) so an `isolated` reference to the current actor must always be passed.
49
-
50
-
```swift
51
-
let val: String=awaitwithIdentifiableContinuation(isolation: self) {
52
-
continuations[$0.id] =$0
53
-
}
54
-
```
55
-
56
46
# Credits
57
47
58
48
IdentifiableContinuation is primarily the work of [Simon Whitty](https://github.com/swhitty).
0 commit comments