Instance of ResourceLocker to use for acquiring a lock.
Time in ms after which the lock expires.
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Release this lock.
A promise resolving when the release is finished.
Reset the unlock timer.
An implementation of an expiring lock which defines the expiration logic.
ExpiringLock used by a ExpiringResourceLocker for non-atomic operations. Emits an "expired" event when internal timer runs out and calls release function when this happen.