Package Exports
- asyncable
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (asyncable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Asyncable.js
Quick Examples
var fsStat = asyncable.thenable(fs.stat);
asyncable
.map(['file1','file2','file3'], fsStat)
.then(function(results) {
// results is now an array of stats for each file
});
var fsExists = asyncable.thenable(fs.exists);
asyncable
.filter(['file1','file2','file3'], fsExists)
.then(function(results) {
// results now equals an array of the existing files
});
asyncable
.parallel([
function() { ... },
function() { ... }
])
.then(function(results) {
});
asyncable
.series([
function() { ... },
function() { ... }
])
.then(function(results) {
});Download
The source is available for download from
GitHub.
Alternatively, you can install using Node Package Manager (npm):
npm install asyncableDocumentation
The following are supported.
Collections
each,eachSeries,eachLimitforEachOf,forEachOfSeries,forEachOfLimitmap,mapSeries,mapLimitfilter,filterSeries,filterLimitreject,rejectSeries,rejectLimitreduce,reduceRightdetect,detectSeries,detectLimitsortBysome,someLimitevery,everyLimitconcat,concatSeries
Control Flow
seriesparallel,parallelLimitwhilst,doWhilstuntil,doUntilduring,doDuringforeverwaterfallcomposeseqapplyEach,applyEachSeriesqueue,priorityQueuecargoautoretryiteratortimes,timesSeries,timesLimit