see http://ember-concurrency.com/docs/tutorial (scroll down to Version 4)
Bad:
actions: {
async handleClick() {
// ...
}
}
actions: {
handleClick() {
return something.then(() => { /* ... */ });
}
}
@action
async handleClick() {
// ...
}
@action
handleClick() {
return something.then(() => { /* ... */ });
}
Good:
actions: {
handleClick() {
return nothingOrSomethingThatIsNotAPromise;
}
}
see http://ember-concurrency.com/docs/tutorial (scroll down to Version 4)
Bad:
Good: