Skip to content

odedniv/node-promises-fulfilled

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

promises-fulfilled

Build Status

Given an array of promises, returns a promise that is resolved/rejected once ALL of the promises are fulfilled.

  • If all promises are resolved, the returned promise is resolved with an array of all the results in the order of the given promises.
  • If even one promise rejects, the returned promise is rejected with the error of the first rejected promise, but only after ALL promises have been fulfilled.

Install

npm install --save promises-fulfilled

Usage

const fulfilled = require('promises-fulfilled');

fulfilled([p1, p2, p3])
  .then(...)
  .catch(...);

License

MIT

About

Given an array of promises, returns a promise that is resolved/rejected once ALL of the promises are fulfilled.

Resources

Stars

Watchers

Forks

Packages

No packages published