Skip to content

Instantly share code, notes, and snippets.

@averydev
Created December 24, 2017 19:26
Show Gist options
  • Save averydev/9e0fac0cd4a767ffec6423dc5c2aa838 to your computer and use it in GitHub Desktop.
Save averydev/9e0fac0cd4a767ffec6423dc5c2aa838 to your computer and use it in GitHub Desktop.
Async Or Swim: Cancel Abandoned Model Calls
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