8000 GitHub - gulpjs/async-settle at v0.2.0
[go: up one dir, main page]

Skip to content
8000

Settle an async function. It will always complete successfully with an object of the resulting state.

License

Notifications You must be signed in to change notification settings

gulpjs/async-settle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Settle an async function. It will always complete successfully with an object of the resulting state.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published
0