Class: TaskInstance

TaskInstance()

new TaskInstance()

A TaskInstance represent a single execution of a Task. Every call to Task#perform returns a TaskInstance.

TaskInstances are cancelable, either explicitly via TaskInstance#cancel or Task#cancelAll, or automatically due to the host object being destroyed, or because concurrency policy enforced by a Task Modifier canceled the task instance.

Source:

Members

(readonly) error

If this TaskInstance is canceled or throws an error (or yields a promise that rejects), this property will be set with that error. Otherwise, it is null.

Source:

(readonly) hasStarted

True if the task instance has started, else false.

Source:

(readonly) isCanceled

True if the task instance is canceled

Source:

(readonly) isError

True if the task instance resolves to a rejection.

Source:

(readonly) isFinished

True if the task has run to completion.

Source:

(readonly) isSuccessful

True if the task instance is fulfilled.

Source:

(readonly) value

If this TaskInstance runs to completion by returning a property other than a rejecting promise, this property will be set with that value.

Source: