-
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
fn
while holdingself
‘s lock.Declaration
Swift
public func withLock<T>(_ fn: () throws -> T) rethrows -> T