Task object lives on a host Ember object (e.g.
a Component, Route, or Controller). You call the
.perform() method on this object
to create run individual
and at any point, you can call the
method on this object to cancel all running or enqueued
(readonly) isIdle :boolean
true if the task is not in the running or queued state.
(readonly) isQueued :boolean
true if any future task instances are queued.
(readonly) isRunning :boolean
true if any current task instances are running.
(readonly) last :TaskInstance
The most recently started task instance.
(readonly) lastCanceled :TaskInstance
The most recently canceled task instance.
(readonly) lastComplete :TaskInstance
The most recently completed task instance.
(readonly) lastErrored :TaskInstance
The most recent task instance that errored.
(readonly) lastIncomplete :TaskInstance
The most recent task instance that is incomplete.
(readonly) lastPerformed :TaskInstance
The most recently performed task instance.
(readonly) lastRunning :TaskInstance
The most recent task instance that is currently running.
(readonly) lastSuccessful :TaskInstance
The most recent task instance that succeeded.
(readonly) performCount :number
The number of times this task has been performed.
(readonly) state :string
The current state of the task:
Cancels all running or queued
TaskInstances for this Task.
If you're trying to cancel a specific TaskInstance (rather
than all of the instances running under this task) call
.cancel() on the specific TaskInstance.
Creates a new
TaskInstance and attempts to run it right away.
If running this task instance would increase the task's concurrency
to a number greater than the task's maxConcurrency, this task
instance might be immediately canceled (dropped), or enqueued
to run at later time, after the currently running task(s) have finished.
args to pass to the task function