Instance Methodswift-nio 2.72.0NIOConcurrencyHelpers
withLockVoid(_:)
NIOLock.swift:246func withLockVoid(_ body: () throws -> Void) rethrows
Other members in extension
Type members
init(
) Create a new lock.
Instance members
func lock(
) Acquire the lock.
func unlock(
) Release the lock.
func withLock<T>(() throws -> T
) rethrows -> T Acquire the lock for the duration of the given block.