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 {
85
85
@_alwaysEmitIntoClient
86
86
@_transparent
87
87
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
89
89
) throws ( E) -> sending Result {
90
90
handle. _lock ( )
91
91
@@ -132,7 +132,7 @@ extension Mutex where Value: ~Copyable {
132
132
@_alwaysEmitIntoClient
133
133
@_transparent
134
134
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
136
136
) throws ( E) -> sending Result? {
137
137
guard handle. _tryLock ( ) else {
138
138
return nil
You can’t perform that action at this time.
0 commit comments