run-async

Utility method to run function either synchronously or asynchronously using the common `this.async()` style.

MIT License

Downloads
96.9M
Stars
23
Committers
8
run-async - Latest Release

Published by SBoudrias over 4 years ago

Remove is-promise dependency in favor of inlining the implementation (done as a follow-up to a release of the is-promise package breaking all sub-dependencies.)

run-async is now dependency free.

run-async -

Published by SBoudrias almost 8 years ago

  • Remove 0.10 Promise polyfill given it is now unsupported.
run-async -

Published by SBoudrias over 8 years ago

  • Normalize the interface to always return a Promise - even if the user Node.js version doesn't support it. (in the absence of native Promise object, we're relying on the Pinkie polyfill)
run-async -

Published by SBoudrias almost 9 years ago

Add runAsync.cb() function to support node error first callback style functions. (Supporting this also mean the number of arguments allowed must be fixed) https://github.com/SBoudrias/run-async#runasynccb

run-async -

Published by SBoudrias about 9 years ago

If your version of Node support Promises natively, runAsync will return a promise you can use instead of the usual callbacks. To allow this functionality, we had to slightly change the runAsync signature:

runAsync(func, cb)(arguments).then(cb);
run-async -

Published by SBoudrias about 9 years ago

  • Functions wrapped by run-async can now return a promise which resolution will trigger the callback.
  • Callbacks are always run asynchronously.
Package Rankings
Top 8.17% on Proxy.golang.org
Top 26.8% on Repo1.maven.org
Top 2.34% on Npmjs.org
Badges
Extracted from project README
npm
Related Projects