As ReadWriteLocker.withReadLock but the locked function gets called with a maintainLock callback function
to reset the lock expiration every time it is called.
The resulting promise will reject once the lock expires.
As ReadWriteLocker.withWriteLock but the locked function gets called with a maintainLock
callback function to reset the lock expiration every time it is called.
The resulting promise will reject once the lock expires.
As ReadWriteLocker.withReadLock but the locked function gets called with a
maintainLock
callback function to reset the lock expiration every time it is called. The resulting promise will reject once the lock expires.