Skip to content

then/all

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status jepso-ci status

then/all

Wait for multiple promises to be resolved

Installation

Server:

$ npm install then-all

Client:

$ component install then/all

API

var all = require('all');
all(get('foo'), get('bar'))
  .then(function (arr) {
    var foo = arr[0];
    var bar = arr[1];
  });
all([get('foo'), get('bar')])
  .then(function (arr) {
    var foo = arr[0];
    var bar = arr[1];
  });

License

MIT

viewcount

About

Resolve an array of promises

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published