withLock(_:)

Declaration

func withLock<R>(_ body: @Sendable () throws -> R) rethrows -> R where R : Sendable