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)
- eslint/no-async-promise-executor https://github.com/eslint/eslint/blob/master/docs/rules/no-async-promise-executor.md