async-bluebird
A bluebird
promisified wrap of async
- async utitlities for node and the browser.
I made this because I felt like it's more productive than manually wrapping async
functions with Promises every time I want to use them.
Install & Require:
npm i async-bluebird
// Promisified async & bluebird Promisesvar async Promise = ; // Just Promisified asyncvar async = ;
Usage:
-
See
async
documentation at: https://caolan.github.io/async/ -
See
Promise
documentation at: http://bluebirdjs.com/docs/api-reference.html
Example
// With callback:async // With Promise:async;
Why use Promises?
Converting async
's utility functions into Promises allows us to easily integrate them with our promise-using code and promise-chains.
-
Why Promises?: http://bluebirdjs.com/docs/why-promises.html
-
Understand promises before you start using async/await: https://medium.com/@bluepnume/learn-about-promises-before-you-start-using-async-await-eb148164a9c8