-
Initializes the lock in the unlocked state.
Declaration
Swift
init() -
Locks the lock
Declaration
Swift
func lock() -
Unlocks the lock.
Declaration
Swift
func unlock() -
withLock(_:Extension method) Runs
fnwhile holdingself‘s lock.Declaration
Swift
public func withLock<T>(_ fn: () throws -> T) rethrows -> T
View on GitHub
MutexProtocol Protocol Reference