async

Module used processing data asynchronous

Source:
See:
  • module:async~async
Example
Application.require('async').then(function (asyncOperations) {
	// @TODO
}, console.error);
Returns:
Type
module:async.AsyncConstructor

Classes

Async

Methods

(static) flow(operations, cb, timeoutopt) → {module:async.Async}

Source:
Parameters:
Name Type Attributes Default Description
operations module:async.Async~Operations
cb module:async.doneCallback
timeout number <optional>
0

timeout between operations

Returns:
Type
module:async.Async

(static) flow·map(operations, cb, timeoutopt) → {module:async.Async}

Source:
Parameters:
Name Type Attributes Default Description
operations Array.<any>
module:async.processCallback
cb module:async.doneCallback
timeout number <optional>
0

timeout between operations

Returns:
Type
module:async.Async

(static) map(operations, cb, timeoutopt) → {module:async.Async}

Source:
Parameters:
Name Type Attributes Default Description
operations Array.<any>
module:async.processCallback
cb module:async.doneCallback
timeout number <optional>
0

timeout between operations

Returns:
Type
module:async.Async

(static) waterfall(operations, cb, parallelopt, timeoutopt) → {module:async.Async}

Source:
Parameters:
Name Type Attributes Default Description
operations module:async.Async~Operations
cb module:async.doneCallback
parallel number <optional>
27

number of operations that can be done in parallel

timeout number <optional>
0

timeout between operations

Returns:
Type
module:async.Async

(static) waterfall·map(operations, cb, parallelopt, timeoutopt) → {module:async.Async}

Source:
Parameters:
Name Type Attributes Default Description
operations Array.<any>
module:async.processCallback
cb module:async.doneCallback
parallel number <optional>
27

number of operations that can be done in parallel

timeout number <optional>
0

timeout between operations

Returns:
Type
module:async.Async

Type Definitions

AsyncConstructor() → {module:async.Async}

Source:
Returns:
Type
module:async.Async

doneCallback()

Source:
This:

processCallback(next, item, index, items)

Source:
Parameters:
Name Type Description
next function
item any
index number
items Array.<any>