GitXplorerGitXplorer
c

promise-queue

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
a668b88bc594bf62350261e7903feac054253691

promise-queue-es6: a Promise Queue library in ES6

committed 8 years ago

README

The README file for this repository.

promise-queue Build Status CircleCI codecov Coverage Status

Promise based Queue, written in ES6, works on Node v6+

API Usage

  • import Queue from 'promise-queue-es6'
  • new Queue(Number maxConcurrent, Number maxQueued): Queue max numbers are default to Infinity, means unlimited
  • Queue#add(Function generator): Promise - adds function argument that generates a promise to the queue`
  • Queue#pendingLength - read only property to get number of current pending promises
  • Queue#queueLength - read only property to get number of current queued promises

Example