Socket
Socket
Sign inDemoInstall

async-settle

Package Overview
Dependencies
6
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

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)


Version published
Weekly downloads
1.4M
decreased by-3.41%
Maintainers
1
Install size
46.9 kB
Created
Weekly downloads
 

Readme

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

FAQs

Last updated on 23 Aug 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc