55// Created by Igor Shelopaev on 29.11.24.
66//
77
8- public extension Async {
8+ extension Async {
99
1010 /// A closure type for handling errors.
1111 ///
12- /// This closure processes an optional `Error` and returns an optional custom error of type `E`.
12+ /// This closure processes an `Error` and returns an optional custom error of type `E`.
1313 @available ( iOS 15 . 0 , macOS 12 . 0 , tvOS 15 . 0 , watchOS 8 . 0 , * )
14- typealias ErrorMapper < E: Error & Sendable > = @Sendable ( Error ? ) -> E ?
14+ public typealias ErrorMapper < E: Error & Sendable > = @Sendable ( Error ) -> E ?
1515
1616 /// A closure that asynchronously transforms an input of type `Input` into an output of type `Output`.
1717 ///
@@ -25,7 +25,7 @@ public extension Async {
2525 /// when used in Swift's structured concurrency model.
2626 /// - Throws: An error if the asynchronous operation cannot complete successfully.
2727 @available ( iOS 15 . 0 , macOS 12 . 0 , tvOS 15 . 0 , watchOS 8 . 0 , * )
28- typealias Mapper < Input: Sendable , Output: Sendable > = @Sendable ( Input) async throws -> Output
28+ public typealias Mapper < Input: Sendable , Output: Sendable > = @Sendable ( Input) async throws -> Output
2929
3030 /// A closure that asynchronously produces an output of type `Output` without requiring any input.
3131 ///
@@ -38,5 +38,5 @@ public extension Async {
3838 /// when used in Swift's structured concurrency model.
3939 /// - Throws: An error if the asynchronous operation cannot complete successfully.
4040 @available ( iOS 15 . 0 , macOS 12 . 0 , tvOS 15 . 0 , watchOS 8 . 0 , * )
41- typealias Producer < Output: Sendable > = @Sendable ( ) async throws -> Output
41+ public typealias Producer < Output: Sendable > = @Sendable ( ) async throws -> Output
4242}
0 commit comments