Using async actions can lead to memory leaks and application errors if you
don't check for isDestroying and isDestroyed after each async step
Examples of incorrect code for this rule:
actions: {
async handleClick() {
// ...
}
}actions: {
handleClick() {
return something.then(() => { /* ... */ });
}
}@action
async handleClick() {
// ...
}@action
handleClick() {
return something.then(() => { /* ... */ });
}Examples of correct code for this rule:
actions: {
handleClick() {
return nothingOrSomethingThatIsNotAPromise;
}
}- Ember Concurrency http://ember-concurrency.com/docs/tutorial (scroll down to Version 4)