Skip to content

Instantly share code, notes, and snippets.

@kborchers
Created February 14, 2013 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kborchers/040710a345941c0abcd4 to your computer and use it in GitHub Desktop.
Save kborchers/040710a345941c0abcd4 to your computer and use it in GitHub Desktop.
//Assume we have a pipe called cars
var promise = cars.read();
//To cancel this request I can't do something like cars.cancel() since it would have no idea what I'm talking about
//I would have to do:
promise.abort();
//I'm not big on adding a bunch of code to add a cancel method to that promise which would just call abort just so I can do
promise.cancel();
@matzew
Copy link

matzew commented Feb 14, 2013

makes sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment