Re: [fetch] Aborting a fetch (#27)

@martinthomson 
>> That would mean fetch(url).then(r => r.json()) isn't abortable once the stream starts being read into json.

> That's OK. At that point, cancelling the stream should suffice. That can be mapped back into a cancellation of the response.

Readable[Byte]Stream.cancel works only when the stream is not locked. As `json()` locks it we cannot abort fetch through stream's methods.


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/27#issuecomment-87145520

Received on Saturday, 28 March 2015 02:16:32 UTC