@@ -34,12 +34,12 @@ public typealias NonSendableFunction<T, U> = (T) -> (U)
3434
3535// MARK: Throwing
3636
37- public typealias ThrowingVoidClosure < E> = @Sendable ( ) throws ( E ) -> ( )
38- public typealias ThrowingSupplier < T, E> = @Sendable ( ) throws ( E ) -> ( T )
39- public typealias ThrowingConsumer < T, E> = @Sendable ( T) throws( E ) -> ( )
40- public typealias ThrowingBiConsumer < T, U, E> = @Sendable ( T, U) throws( E ) -> ( )
41- public typealias ThrowingPredicate < T, E> = @Sendable ( T) throws( E ) -> Bool
42- public typealias ThrowingFunction < T, U, E> = @Sendable ( T) throws( E ) -> ( U )
37+ public typealias ThrowingVoidClosure < E: Error > = @Sendable ( ) throws ( E ) -> ( )
38+ public typealias ThrowingSupplier < T, E: Error > = @Sendable ( ) throws ( E ) -> ( T )
39+ public typealias ThrowingConsumer < T, E: Error > = @Sendable ( T) throws( E ) -> ( )
40+ public typealias ThrowingBiConsumer < T, U, E: Error > = @Sendable ( T, U) throws( E ) -> ( )
41+ public typealias ThrowingPredicate < T, E: Error > = @Sendable ( T) throws( E ) -> Bool
42+ public typealias ThrowingFunction < T, U, E: Error > = @Sendable ( T) throws( E ) -> ( U )
4343
4444// MARK: MainActor
4545
@@ -52,9 +52,9 @@ public typealias MainFunction<T, U> = @MainActor (T) -> (U)
5252
5353// MARK: MainActor + Throwing
5454
55- public typealias MainThrowingVoidClosure < E> = @MainActor ( ) throws ( E ) -> ( )
56- public typealias MainThrowingSupplier < T, E> = @MainActor ( ) throws ( E ) -> ( T )
57- public typealias MainThrowingConsumer < T, E> = @MainActor ( T) throws( E ) -> ( )
58- public typealias MainThrowingBiConsumer < T, U, E> = @MainActor ( T, U) throws( E ) -> ( )
59- public typealias MainThrowingPredicate < T, E> = @MainActor ( T) throws( E ) -> Bool
60- public typealias MainThrowingFunction < T, U, E> = @MainActor ( T) throws( E ) -> ( U )
55+ public typealias MainThrowingVoidClosure < E: Error > = @MainActor ( ) throws ( E ) -> ( )
56+ public typealias MainThrowingSupplier < T, E: Error > = @MainActor ( ) throws ( E ) -> ( T )
57+ public typealias MainThrowingConsumer < T, E: Error > = @MainActor ( T) throws( E ) -> ( )
58+ public typealias MainThrowingBiConsumer < T, U, E: Error > = @MainActor ( T, U) throws( E ) -> ( )
59+ public typealias MainThrowingPredicate < T, E: Error > = @MainActor ( T) throws( E ) -> Bool
60+ public typealias MainThrowingFunction < T, U, E: Error > = @MainActor ( T) throws( E ) -> ( U )
0 commit comments