StaticdeadlockDeadlock timeout in milliseconds
StaticloggerLogger used to log errors which appears during locked calls
StaticacquireAcquires a lock for a given key
Optionalcallback: (...args: any[]) => anyOptionalmetadata: IMQLockMetadataItemStaticlockedReturns true if given key is locked, false otherwise
Staticrelease
Class IMQLock. Implements promise-based locks.
Example