Queue with multi lock mutex.
npm install mutex-pro-max
Returns: number
Returns the remaining length of queues.
Type: fn()
Adds functions to the current queue to be executed later in a FIFO order.
Empties the current queue.
Lock the current queue until .release()
is called to release the lock.
Note: The size of .lock()
is propotional to .release()
's, .release()
is needed to called as many times as .lock()
in order to execute.
Releases the current queue.
Returns: boolean
Returns the state of the current queue.
Returns: number
Returns the size of .lock()
Releases all .lock()