1.0.1 • Published 7 years ago

async-collection v1.0.1

Weekly downloads
40
License
MIT
Repository
github
Last release
7 years ago

async-collection stability

npm version build status downloads js-standard-style

Collection of async functions

Usage

// require the whole module
var async = require('async-collection')

// require an invidiual method
var parallel = require('async-collection/parallel')

API

async.waterfall(arr, cb)

Run an array of functions in series, each passing its results to the next function. Uses run-waterfall.

async.series(arr, cb)

Run an array of functions in series. Uses run-series.

async.parallel(arr, cb)

Run an array of functions in parallel. Uses run-parallel.

async.parallelLimit(arr, cb)

Run an array of functions in parallel, but limit the number of tasks executing at the same time. Uses parallel-limit.

async.mapLimit(arr, limit, iterator, cb)

Map over an array of data and call them, but limit the number of tasks executing at the same time. Uses map-limit.

License

MIT