Aborts any active tasks, invoking each active task’s task.abort function, if any. Also prevents any new tasks from starting, and immediately invokes the queue.await or queue.awaitAll callback with an error indicating that the queue was aborted.
Sets the callback to be invoked when all deferred tasks have finished (individual result arguments).
Callback function to be executed, when error occured or all deferred tasks have completed. The first argument to the callback is the first error that occurred, or null if no error occurred. If an error occurred, there are no additional arguments to the callback. Otherwise, the callback is passed each result as an additional argument.
Sets the callback to be invoked when all deferred tasks have finished (results array).
Callback function to be executed, when error occured or all deferred tasks have completed. The first argument to the callback is the first error that occurred, or null if no error occurred. If an error occurred, there are no additional arguments to the callback. Otherwise, the callback is also passed an array of results as the second argument.
Adds the specified asynchronous task callback to the queue, with any optional arguments.
Task to be executed.The task is a function that will be called when the task should start. It is passed the specified optional arguments and an additional callback as the last argument; the callback must be invoked by the task when it finishes. The task must invoke the callback with two arguments: the error, if any, and the result of the task. To return multiple results from a single callback, wrap the results in an object or array.
Additional, optional arguments to be passed into deferred task on invocation
Generated using TypeDoc
A d3-queue queue object as returned by queue(...)