Private
callbackPrivate
canceledPrivate
completedPromise resolved as soon as the task terminates successfully, and rejected in case the task is canceled from the outside.
Private
valuesPrivate
processPrivate
processPrivate
processPrivate
rejectPrivate
resolveGenerated using TypeDoc
Non-blocking iterative task, using the event loop to divide the iteration into smaller batches and schedule them for deferred execution.
The constructor accepts a list of input values, a function to process them, and an object describing the strategy used to divide the task into batches.
The batching strategies are the following:
Returning false in the processing function stops the iteration, similarly to what happens when using a
break
statement in a regular loop.