File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ public enum AsyncPhase<Success, Failure: Error> {
2424 }
2525 }
2626
27- /// Creates a new phase by evaluating a async throwing closure, capturing the
28- /// returned value as a success, or any thrown error as a failure.
29- ///
30- /// - Parameter body: A async throwing closure to evaluate.
3127 #if compiler(>=6)
28+ /// Creates a new phase by evaluating a async throwing closure, capturing the
29+ /// returned value as a success, or thrown error as a failure.
30+ ///
31+ /// - Parameter body: A async throwing closure to evaluate.
3232 public init ( catching body: @Sendable ( ) async throws ( Failure ) -> Success ) async {
3333 do {
3434 let value = try await body ( )
@@ -39,6 +39,10 @@ public enum AsyncPhase<Success, Failure: Error> {
3939 }
4040 }
4141 #else
42+ /// Creates a new phase by evaluating a async throwing closure, capturing the
43+ /// returned value as a success, or thrown error as a failure.
44+ ///
45+ /// - Parameter body: A async throwing closure to evaluate.
4246 public init ( catching body: @Sendable ( ) async throws -> Success ) async where Failure == Error {
4347 do {
4448 let value = try await body ( )
You can’t perform that action at this time.
0 commit comments