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:
var {async, Promise} = require('async-bluebird');
var async = require('async-bluebird');
Usage:
Example
async.each([1,2,3], (item, callback) => {
}, (err) => {
if (err) {
} else {
}
})
async.each([1,2,3], (item, callback) => {
}).then(() => {
}).catch((err) => {
});
Why use Promises?
Converting async
's utility functions into Promises allows us to easily integrate them with our promise-using code and promise-chains.