-
-
Save kborchers/040710a345941c0abcd4 to your computer and use it in GitHub Desktop.
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
//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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
makes sense