File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ extension Actor {
102
102
/// of the executor while performing the operation.
103
103
@_alwaysEmitIntoClient
104
104
@available ( SwiftStdlib 5 . 1 , * )
105
- public nonisolated func withSerialExecutor< T, E: Error > ( _ operation: ( any SerialExecutor ) throws ( E ) -> T ) throws ( E) -> T {
105
+ public nonisolated func withSerialExecutor< T: ~ Copyable , E: Error > ( _ operation: ( any SerialExecutor ) throws ( E ) -> T ) throws ( E) -> T {
106
106
try operation ( unsafe unsafeBitCast( self . unownedExecutor, to: ( any SerialExecutor ) . self) )
107
107
}
108
108
@@ -113,7 +113,7 @@ extension Actor {
113
113
/// of the executor while performing the operation.
114
114
@_alwaysEmitIntoClient
115
115
@available ( SwiftStdlib 5 . 1 , * )
116
- public nonisolated func withSerialExecutor< T, E: Error > ( _ operation: ( any SerialExecutor ) async throws ( E) -> T ) async throws ( E) -> T {
116
+ public nonisolated func withSerialExecutor< T: ~ Copyable , E: Error > ( _ operation: ( any SerialExecutor ) async throws ( E) -> T ) async throws ( E) -> T {
117
117
try await operation ( unsafe unsafeBitCast( self . unownedExecutor, to: ( any SerialExecutor ) . self) )
118
118
}
119
119
}
You can’t perform that action at this time.
0 commit comments