Index

Classes

Class

Class Banana.Util.arrayInteratorAsync


Defined in: Utils.js.

Class Detail
Banana.Util.arrayInteratorAsync(array, cb, timeout, completeCb, complete)

Iterates over array asynchronized iteration is devided into chunks where after each chunk the cpu gets time to do other tasks

TODO: let the user specify the chunksize

Parameters:
{Array} array
to iterate over
{Function} cb
callback called every iteration
{int} timeout
between chunks, default 0
{Function} completeCb
callback. Invoked when iteration is complete
{Function} complete
chunk callback. Invoked after each chunk completion

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Dec 05 2012 22:02:05 GMT+0100 (CET)