Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 837 Bytes

readme.md

File metadata and controls

37 lines (26 loc) · 837 Bytes

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