skip icon indicating copy to clipboard operation
skip copied to clipboard

Update behavior of transpiled async functions for Swift 6.2

Open aabewhite opened this issue 5 months ago • 0 comments

As of Swift 6.2, nonisolated async functions (i.e. any async function that isn't part of an actor or marked @MainActor) run on their caller's actor by default.

https://github.com/swiftlang/swift-evolution/blob/main/proposals/0461-async-function-isolation.md

We should update the transpiler so that the suspend functions we generate for nonisolated async Swift functions do not dispatch unless the Swift uses the @concurrent attribute. We can then remove the // SKIP @nodispatch directive.

aabewhite avatar Jul 31 '25 04:07 aabewhite