Socket
Book a DemoInstallSign in
Socket

make-queue

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

make-queue

Execute async callbacks in the correct orders

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

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.

Keywords

promise

FAQs

Package last updated on 24 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts