Protocol any lock can implement.
protocol Lockable
s25PackageConcurrencyHelpers8LockableP
9SXLE
import PackageConcurrencyHelpers
init()
Default initializer.
func lock()
Acquire the lock.
func unlock()
Release the lock.
func withLock<T>(_ body: () throws -> T) rethrows -> T
Acquire the lock for the duration of the given block.
func withLockVoid(_ body: () throws -> Void) rethrows