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