Constructor.
the number of iterations.
the function to run each iteration
the callback that will be called upon succesful execution
starting offset.
Defines the current index of the loop.
Defines the number of iterations for the loop
Break the loop and run the success callback.
Execute the next iteration. Must be called after the last iteration was finished.
Create and run an async loop.
the number of iterations.
the function to run each iteration
the callback that will be called upon succesful execution
starting offset.
the created async loop object
A for-loop that will run a given number of iterations synchronous and the rest async.
total number of iterations
number of synchronous iterations in each async iteration.
the function to call each iteration.
a success call back that will be called when iterating stops.
a break condition (optional)
timeout settings for the setTimeout function. default - 0.
the created async loop object
Generated using TypeDoc
An implementation of a loop for asynchronous functions.