File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ extension Actor {
150
150
/// of the executor while performing the operation.
151
151
@_alwaysEmitIntoClient
152
152
@available (SwiftStdlib 5.1, * )
153
- public nonisolated func withSerialExecutor <T >(_ operation : (any SerialExecutor) throws -> T) rethrows -> T
153
+ public nonisolated func withSerialExecutor <T , E : Error >(_ operation : (any SerialExecutor) throws (E) -> T) throws (E) -> T
154
154
155
155
/// Perform an operation with the actor's ``SerialExecutor``.
156
156
///
@@ -159,7 +159,7 @@ extension Actor {
159
159
/// of the executor while performing the operation.
160
160
@_alwaysEmitIntoClient
161
161
@available (SwiftStdlib 5.1, * )
162
- public nonisolated func withSerialExecutor <T >(_ operation : (any SerialExecutor) async throws -> T) async rethrows -> T
162
+ public nonisolated func withSerialExecutor <T , E : Error >(_ operation : (any SerialExecutor) async throws (E) -> T) async throws (E) -> T
163
163
164
164
}
165
165
```
You can’t perform that action at this time.
0 commit comments