make-queue
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Execution queue Build Status

NPM

Execute async callbacks in the correct orders.

API reference

There is only one function from the default import

import makeQueue from 'make-queue'
// or
const makeQueue = require('make-queue')
  • const queue = makeQueue(skipError): create a new queue queue. Default: skipError = true.
  • queue(cb): appends the cb callback to the queue and returns a promise which resolves the cb's results.

If skipError is false, once a callback in a chain throws an error, all following calls fail immediately and throw this error.

Package Sidebar

Install

npm i make-queue

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

1.96 kB

Total Files

7

Last publish

Collaborators

  • tranvansang