1.0.2 • Published 10 years ago

promisequeue v1.0.2

Weekly downloads
13
License
-
Repository
-
Last release
10 years ago

Promise Queue

This is a simple module to handle running a queue of functions, with optional concurrency limits.

Installation

npm install promisequeue

Usage

Parameters:

  • queue: An array of functions, each of which must return a promise
  • options: An optional array containing configuration options

A call to Promise Queue will return a promise that will be fulfilled when all jobs are complete.

The options parameter has two values:

  • concurrency: The maximum number of jobs to run simultaneously. If not set, then no limit is applied.
  • abortOnReject: If set, a job rejecting it's promise will result in the queue's promise being rejected. Default is false.
1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago