Instance Methodswift-nio 2.72.0NIOConcurrencyHelpers
withLockVoid(_:)
lock.swift:117This declaration has been renamed to NIOLock.
This declaration is deprecated.
func withLockVoid(_ body: () throws -> Void) rethrows
Other members in extension
Type members
Show obsolete interfaces (1)
Hide obsolete interfaces
init(
) Create a new lock.
Instance members
Show obsolete interfaces (3)
Hide obsolete interfaces
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.