then-all

2.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i then-all

Weekly Downloads

2

Version

2.0.0

License

MIT

Last publish

Collaborators

  • forbeslindesay