Optional
dataData associated with this task, when added to the queue. Can be freely modified at any point.
Gets you the promise which you can use to attach a .then
and .catch
callbacks if you are interested in result
of your task.
You should actually always attach .catch
callback to prevent UncaughtRejection errors from being thrown.
Starts the task.
Error - when task is already started or task belongs to queue that is destroyed
A promise than resolves after task is resolved or rejected. This promise doesn't contain resolved value or rejected error, for this use promise
Generated using TypeDoc
Task instance, created when you call the add, prepend, insertAt methods of Queue instance.
Remarks
Not exported and not intended to instantiate manually.