Created
December 24, 2017 19:26
-
-
Save averydev/9e0fac0cd4a767ffec6423dc5c2aa838 to your computer and use it in GitHub Desktop.
Async Or Swim: Cancel Abandoned Model Calls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commentsTask: task(function *(){ | |
let blog = yield this.modelFor('blog').blogTask; | |
let comments = yield blog.get('comments'); | |
return comments; | |
}).cancelOn('deactivate') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment