Skip to content

Swift 6 (Xcode 6 Beta 5)

Choose a tag to compare

@swhitty swhitty released this 06 Aug 22:18
· 44 commits to main since this release
7981436

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
}