Creates a new worker task that executes the operation defined by the given definition
the definition of the operation to execute
the definition of the operation to execute
Marks the task as failed
the error that occurred while processing the task
Marks the task as complete where the given value is the task result. Triggers all registered then
handlers of the promise.
However, if the task has been cancelled in the mean time, then the catch
handlers are triggered instead
the result of the task execution
Resolves a task that has been cancelled before start.
Triggers all the catch
handlers.
Generated using TypeDoc
Default implementation of a task. Keeps the state of a state and allows to register handlers that are invoked in case of task completion or error.