new TaskInstance()
A TaskInstance
represent a single execution of a
Task
. Every call to Task#perform
returns
a TaskInstance
.
TaskInstance
s 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.
(readonly) hasStarted
True if the task instance has started, else false.
(readonly) isCanceled
True if the task instance is canceled
(readonly) isError
True if the task instance resolves to a rejection.
(readonly) isFinished
True if the task has run to completion.
(readonly) isSuccessful
True if the task instance is fulfilled.
(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.