-
Notifications
You must be signed in to change notification settings - Fork 1
Given:
var flow = require("asyncflow");
Create and run a flow block. Write your synchronous and wrapped function calls in f
. See Basic Usage for more information.
Wrap an asynchronous function so it can be used within a flow block. o
can be a function, or an object (module). When o
is a function, the optional second argument n
will indicate how many calling arguments are to be passed to the function being wrapped. The default value of n
is +Infinity, meaning all calling arguments are to be passed to the function. See Basic Usage and Parallel forEach and map for more information.
An asynchronous parallel forEach implementation intended to be used outside of a flow block. You can provide an optional concurrency limit to obey, default is unlimited. f
is a wrapped asynchronous function. When all array
members are done, cb
gets called. It has a signature like this: cb(err)
.
An asynchronous parallel map implementation intended to be used outside of a flow block. You can provide an optional concurrency limit to obey, default is unlimited. f
is a wrapped asynchronous function. When all array
members are done, cb
gets called. It has a signature like this: cb(err, mappedArray)
.
This is the wrapped up version of flow.forEach
, obviously to be used within a flow block.
This is the wrapped up version of flow.map
, obviously to be used within a flow block.
A facility function for easy prototype extension. See Tutorial for more infomartion on how to use it.
A facility function for easy prototype extension. method
is one of the collection method's name, like "forEach" or "map". This version is for flow.wrapped
collection methods, for flow
collection methods, use flow.extension.collectionAsync. See Tutorial for more infomartion on how to use it.
A facility function for easy prototype extension. method
is one of the collection method's name, like "forEach" or "map". This version is for flow
collection methods, for flow.wrapped
collection methods, use flow.extension.collection. See Tutorial for more infomartion on how to use it.