Private Optional #onAcquires a lock on this mutex. Only one lock can be kept at a time; calling multiple times will create dependent locks
Returns a promise that can be awaited until the lock is released. If there is no lock the promise is resolved immediately.
Generated using TypeDoc
Creates a mutex that when acquired will return a lock that needs to be released before any waiting code can be run.