asyncEach() method from fcf.Actions class
Package: fcf-framework-core
File: fcf-framework-core:fcf.js
Available from version: 2.0.2
Iterates over the passed object, calling a separate a_cb handler for each element of the object, the handlers for the passed set being executed simultaneously asynchronously. The iterable object can be passed to a function that returns the iterable object. In this case, the object acquisition will be performed immediately before the handler function is executed.
If the a_obj is given by a function, then before calling the handler function, the function passed in the a_obj argument is called and its result is used as an object for iteration.
-
mixed a_cb(mixed a_key,mixed a_value,mixed a_lastResult) - function without completion confirmation. The function can be asynchronous. The execution of the next handler begins after the function has completed or thePromise orfcf.Actions object it returned has completed. -
mixed a_cb(mixed a_key,mixed a_value,mixed a_lastResult,fcf.Actions.Act a_act) - function that confirms the completion of an asynchronous operation. The execution of the next handler starts after the call to thecomplete (mixed a_value) orerror (Error a_error) method in case of an error on thea_act object.
Output: