1.0.3 • Published 7 years ago

promisqueue v1.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

PromisQueue NPM Version Build Status

Simple ES6 Promises based queue, with optional (and flexible) concurrency.

Installation

promisqueue can be installed using npm:

npm install promisqueue

Interface

  • new PromisQueue(Object options): PromisQueue

Methods:

  • PromisQueue#add(Function factory): Number - adds function argument that generates a promise to the queue (FIFO)
  • PromisQueue#prepend(Function factory): Number - adds function argument that generates a promise to the queue (LIFO)

Properties:

  • PromisQueue#length: Number - returns current length of buffer(added but not started promise generators)
  • PromisQueue#currentConcurrency: Number - returns number of current concurrency limit
1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago