@@ -22,7 +22,7 @@ extension Task {
2222 public func recover( upon executor: PreferredExecutor , substituting substitution: @escaping ( Error ) throws -> SuccessValue ) -> Task < SuccessValue > {
2323 return recover ( upon: executor as Executor , substituting: substitution)
2424 }
25-
25+
2626 /// Returns a `Task` containing the result of mapping `substitution` over
2727 /// the failed task's error.
2828 ///
@@ -57,7 +57,7 @@ extension Task {
5757 return Task < SuccessValue > ( future: future, cancellation: cancel)
5858 #endif
5959 }
60-
60+
6161 /// Begins another task in the case of the failure of `self` by calling
6262 /// `restartTask` with the error.
6363 ///
@@ -69,7 +69,7 @@ extension Task {
6969 public func fallback< NewTask: FutureProtocol > ( upon executor: PreferredExecutor , to restartTask: @escaping ( Error ) -> NewTask ) -> Task < SuccessValue > where NewTask. Value: Either , NewTask. Value. Left == Error , NewTask. Value. Right == SuccessValue {
7070 return fallback ( upon: executor as Executor , to: restartTask)
7171 }
72-
72+
7373 /// Begins another task in the case of the failure of `self` by calling
7474 /// `restartTask` with the error.
7575 ///
@@ -87,13 +87,13 @@ extension Task {
8787 #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
8888 let progress = extendedProgress ( byUnitCount: 1 )
8989 #endif
90-
90+
9191 let future : Future < Result > = andThen ( upon: executor) { ( result) -> Task < SuccessValue > in
9292 #if os(macOS) || os(iOS) || os(tvOS) || os(watchOS)
9393 progress. becomeCurrent ( withPendingUnitCount: 1 )
9494 defer { progress. resignCurrent ( ) }
9595 #endif
96-
96+
9797 do {
9898 let value = try result. extract ( )
9999 return Task ( success: value)
0 commit comments