A basic synchronization primitive.
struct MutexLock
s5Utils9MutexLockV
4AP7Z
import Utils
protocol Sendable
func lock(_ action: () throws -> Void) rethrows
Acquires the lock for the duration of the given block. May block the current thread.