We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dbffb9 commit 63d4760Copy full SHA for 63d4760
Sources/Atoms/AsyncPhase.swift
@@ -30,11 +30,7 @@ public enum AsyncPhase<Success, Failure: Error> {
30
///
31
/// - Parameter body: A async throwing closure to evaluate.
32
public init(
33
- // Adopt SE-0420 Inheritance of actor isolation instead of adding @Sendable
34
- // to the body closure once the compiler crash that happens with Swift 6.0
35
- // when used in an initializer is solved.
36
- // isolation: isolated (any Actor)? = #isolation,
37
- catching body: @Sendable () async throws(Failure) -> Success
+ @_inheritActorContext catching body: () async throws(Failure) -> Success
38
) async {
39
do {
40
let value = try await body()
0 commit comments