Removes this mutex from the global state, after invoking this method it cannot be used any more.
Acquire a read lock. Multiple reads will occur simultaneously up to the concurrency limit passed to the constructor.
Optional
options: AbortOptionsAcquire a write lock. The write lock will wait for any in-flight reads to complete, then prevent any further reads or writes until the lock is released.
Optional
options: AbortOptions
If this is the main thread, the state of the read/write queue may be inspected here