async-collection

v1.0.0
Collection of async functions
async series parallel map

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

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 7/14/2017

Downloads

Maintainers