Concurrent.ReentrantLock
enum ReentrantLockSourcecase ReentrantLock(java.util.concurrent.locks.ReentrantLock)A wrapper around a Java ReentrantLock.
Definitions
def lockInterruptibly(lock: ReentrantLock): Result[java.lang.InterruptedException, Unit] \ IO§ SourceAcquires the lock unless the current thread is interrupted.
Returns a Condition instance for use with this Lock instance.
Creates an instance of ReentrantLock with the given fairness policy.
fair = False is the default for Java.
Acquires the lock only if it is not held by another thread at the time of invocation.