Skip to content

Swift 6

Choose a tag to compare

@swhitty swhitty released this 14 Jul 02:12
· 46 commits to main since this release
900560d

Adds support for Swift 6, inheriting actor isolation through the new #isolation keyword (SE-420).

let val: String = await withIdentifiableContinuation { 
  continuations[$0.id] = $0
}

Swift 5 must continuation to pass an isolated reference to the current actor.

let val: String = await withIdentifiableContinuation(isolation: self) { 
  continuations[$0.id] = $0
}