Skip to content

dario1985/promisqueue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published