withLockIfAvailable(_:)

Declaration

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