Skip to content

Commit 63d4760

Browse files
authored
Use @_inheritActorContext (#159)
1 parent 8dbffb9 commit 63d4760

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Sources/Atoms/AsyncPhase.swift

+1-5
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,7 @@ public enum AsyncPhase<Success, Failure: Error> {
3030
///
3131
/// - Parameter body: A async throwing closure to evaluate.
3232
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
33+
@_inheritActorContext catching body: () async throws(Failure) -> Success
3834
) async {
3935
do {
4036
let value = try await body()

0 commit comments

Comments
 (0)