Re: [whatwg/fetch] Aborting a fetch: The Next Generation (#447)

I agree that modifying the Request object feels very wrong (why not go all the way back to the XHR api...). I kind of like the cancelling promise pattern. It's conceptually simple and easy to understand (well, not sure what I would intuitively expect when the cancel promise is rejected, but other than that...), while providing all the necessary functionality.
It would of course change the fetch API slightly (since now the second parameter can no longer be just a `RequestInit` dictionary, but instead would need to be some kind of `FetchOptions` dictionary), but that doesn't seem problematic.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/447#issuecomment-270452648

Received on Wednesday, 4 January 2017 18:50:58 UTC