🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

async-settle

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-settle

Settle your async functions - when you need to know all your parallel functions are complete (success or failure)

0.0.0
Source
npm
Version published
Weekly downloads
1.5M
-4.78%
Maintainers
1
Weekly downloads
 
Created
Source

async-settle

build status

Settle your async functions - when you need to know all your parallel functions are complete (success or failure)

API

settle(executor, onComplete) : Function

Takes a function to execute (executor) and a function to call on completion (onComplete).

executer is executed in the context of async-done, with all errors and results being settled.

onComplete will be called with a settled value.

Settled Values

Settled values have two properties, state and value.

state has two possible options 'error' and 'success'.

value will be the value passed to original callback.

License

MIT

Keywords

settle

FAQs

Package last updated on 10 Mar 2014

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