Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/avaer/promiseser


https://github.com/avaer/promiseser

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

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);
});
```