ember-concurrency is an Ember Addon that enables you to write concise, worry-free, cancelable, restartable, asynchronous tasks.
690
stars
157
forks
source link
Types: Make Task, TaskInstance, and TaskGroup extend EmberObject #363
Closed
jamescdavis closed 4 years ago
A
Task
is anEmberObject
: https://github.com/machty/ember-concurrency/blob/d066cd71a9e6abb8c749d931e971004a9930c587/addon/-task-property.js#L53-L55This is important because the task state properties are computed properties, e.g. https://github.com/machty/ember-concurrency/blob/d066cd71a9e6abb8c749d931e971004a9930c587/addon/-task-state-mixin.js#L14-L22 and require using
.get()
to access them in Ember < 3.1.Update:
TaskInstance
andTaskGroup
are alsoEmberObject
s so I've included them as well.@chancancode @dfreeman @chriskrycho