polysolve
Install
npm install --save polysolve
Usage
var ps = ; ; ; ; ; ; ; //An array of streams will pipe in order.; { word = word || 'curried'; return { ; };}
About
Pass a value to polysolve
. It returns the same value type with all of the promises resolved.
For convenience polysolve
delegates to Promise.all for arrays.
polysolve
turns primitive values into promises.
An array of streams
will be automatically piped. A promise is returned as usual.
The streaming array is handled by the streamall module.
The example above includes the usage of Promise.resolve. Make sure to include your own promise polyfill if you need one.
async/await is the ES2016 solution to the problem polysolve solves. Until we get all the goodness of async/await we've got libraries, and transpilers for now. :)