promiseser
v0.0.3
Published
Serialized promises, no dependencies or other baggage. Catches errors and returns results in the way you expect.
Readme
Serialized promises, no dependencies or other baggage. Catches errors and returns results in the way you expect.
Usage
const promiseser = require('.');
const promiseFns = Array(15).fill().map((_, i) => () => new Promise((accept, reject) => {
setTimeout(() => {
console.log(i);
accept(i);
});
}));
promiseser(promiseFns)
.then(results => {
console.log(results);
});