11//===----------------------------------------------------------------------===//
22//
3- // This source file is part of the Swift.org open source project
3+ // This source file is part of the Swift Async Algorithms open source project
44//
5- // Copyright (c) 2024 Apple Inc. and the Swift project authors
5+ // Copyright (c) 2022 Apple Inc. and the Swift project authors
66// Licensed under Apache License v2.0 with Runtime Library Exception
77//
88// See https://swift.org/LICENSE.txt for license information
9- // See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
109//
1110//===----------------------------------------------------------------------===//
1211
@@ -21,7 +20,9 @@ extension AsyncSequence {
2120 ///
2221 /// Use the ``mapError(_:)`` operator when you need to replace one error type with another.
2322 @available ( AsyncAlgorithms 1 . 1 , * )
24- public func mapError< MappedError: Error > ( _ transform: @Sendable @escaping ( Failure) async -> MappedError ) -> AsyncMapErrorSequence < Self , MappedError > {
23+ public func mapError< MappedError: Error > (
24+ _ transform: @Sendable @escaping ( Failure) async -> MappedError
25+ ) -> AsyncMapErrorSequence < Self , MappedError > {
2526 AsyncMapErrorSequence ( base: self , transform: transform)
2627 }
2728}
@@ -45,7 +46,7 @@ public struct AsyncMapErrorSequence<Base: AsyncSequence, MappedError: Error> {
4546}
4647
4748@available ( AsyncAlgorithms 1 . 1 , * )
48- extension AsyncMapErrorSequence : AsyncSequence {
49+ extension AsyncMapErrorSequence : AsyncSequence {
4950
5051 /// The iterator that produces elements of the map sequence.
5152 public struct Iterator : AsyncIteratorProtocol {
@@ -85,8 +86,8 @@ extension AsyncMapErrorSequence: AsyncSequence {
8586}
8687
8788@available ( AsyncAlgorithms 1 . 1 , * )
88- extension AsyncMapErrorSequence : Sendable where Base: Sendable { }
89+ extension AsyncMapErrorSequence : Sendable where Base: Sendable { }
8990
9091@available ( * , unavailable)
91- extension AsyncMapErrorSequence . Iterator : Sendable { }
92+ extension AsyncMapErrorSequence . Iterator : Sendable { }
9293#endif
0 commit comments