2.0.2 • Published 5 years ago

mutex-pro-max v2.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
5 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

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.0

5 years ago

1.2.1

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.3

5 years ago

1.0.0

5 years ago