skip
skip copied to clipboard
Update behavior of transpiled async functions for Swift 6.2
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.