p-join
Combine results from multiple promises into a single value.
Like Promise.join from bluebird.
Installation
With npm:
npm install --save p-join
Usage
var join = var result = result
Compare doing this with Promise.all
:
var result = Promiseall Promise Promise result
API
result = require('p-join')(...promises, callback)
Pass Promises or values as separate arguments.
The callback
receives the resolved values of all ...promises
as arguments, in order.
If callback
returns a value or a Promise, result
will resolve with that value.