ember-concurrency is an Ember Addon that makes it easy to write concise, robust, and beautiful asynchronous code.
It provides you with a powerful Task primitive, which offers the following benefits:
.drop()modifier, or you can configure a task to be
.restartable()so that it starts over when you click a "Restart" button. Implementing this logic without tasks requires a lot of boilerplate code and defensive programming.
if(this.isDestroyed)checks to prevent timers or ajax responses causing
"set on destroyed object"errors.
In addition to the comprehesive documentation on this site, you might find the following links useful for learning about ember-concurrency.