File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
stdlib/public/Synchronization/Mutex Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ extension Mutex where Value: ~Copyable {
8585 @_alwaysEmitIntoClient
8686 @_transparent
8787 public borrowing func withLock< Result: ~ Copyable, E: Error > (
88- _ body: @ Sendable ( inout Value ) throws ( E ) -> sending Result
88+ _ body: ( inout sending Value) throws ( E ) -> sending Result
8989 ) throws ( E) -> sending Result {
9090 handle. _lock ( )
9191
@@ -132,7 +132,7 @@ extension Mutex where Value: ~Copyable {
132132 @_alwaysEmitIntoClient
133133 @_transparent
134134 public borrowing func withLockIfAvailable< Result: ~ Copyable, E: Error > (
135- _ body: @ Sendable ( inout Value ) throws ( E ) -> sending Result
135+ _ body: ( inout sending Value) throws ( E ) -> sending Result
136136 ) throws ( E) -> sending Result? {
137137 guard handle. _tryLock ( ) else {
138138 return nil
You can’t perform that action at this time.
0 commit comments