2.0.2 • Published 3 years ago

mutex-pro-max v2.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

mutex-pro-max

Queue with multi lock mutex.

Installation

npm install mutex-pro-max

Usage

.queueSize()

Returns: number\ Returns the remaining length of queues.

.enqueue

Type: fn()\ Adds functions to the current queue to be executed later in a FIFO order.

.clearQueue()

Empties the current queue.

.lock()

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.

.release()

Releases the current queue.

.isLocked()

Returns: boolean\ Returns the state of the current queue.

.lockSize()

Returns: number\ Returns the size of .lock()

.releaseAll()

Releases all .lock()

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago