-
-
Notifications
You must be signed in to change notification settings - Fork 210
Open
Labels
Description
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;
}
}
Alonski, lifeart and herzzanu