Skip to content

Commit b28d77e

Browse files
authored
Update README.md
1 parent dbdbbe8 commit b28d77e

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

README.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ To install using Swift Package Manager, add this to the `dependencies:` section
2020

2121
# Usage
2222

23-
With Swift 6, usage is similar to existing continuations.
23+
Usage is similar to existing continuations.
2424

2525
```swift
2626
let val: String = await withIdentifiableContinuation {
@@ -43,16 +43,6 @@ let val: String = await withIdentifiableContinuation {
4343

4444
> The above is also compatible in Swift 5 language mode using a Swift 6 compiler e.g. Xcode 16
4545
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 = await withIdentifiableContinuation(isolation: self) {
52-
continuations[$0.id] = $0
53-
}
54-
```
55-
5646
# Credits
5747

5848
IdentifiableContinuation is primarily the work of [Simon Whitty](https://github.com/swhitty).

0 commit comments

Comments
 (0)