lock
The block will run in with the reentrant lock.
Parameters
lock
java.util.concurrent.locks.ReentrantLock The reentrant lock to use.
block
() -> Unit The block of code to execute within the lock.
The block will run in with the reentrant lock.
java.util.concurrent.locks.ReentrantLock The reentrant lock to use.
() -> Unit The block of code to execute within the lock.