1

I can't figure out how to cancel a fetch stream. I tried the following code, which didn't cancel the stream.

fetch(url).then(function(response) {
 response.body.cancel()
})
Daniel Herr
  • 19,083
  • 6
  • 44
  • 61
  • possible duplicate of [How do I cancel an HTTP fetch() request?](http://stackoverflow.com/questions/31061838/how-do-i-cancel-an-http-fetch-request) – Buzinas Sep 26 '15 at 00:26

1 Answers1

1

As you can see in this open issue, at the time of writing, it's not possible to abort a fetch stream.

Take a look at this other answer: How do I cancel an HTTP fetch() request?

Community
  • 1
  • 1
Buzinas
  • 11,597
  • 2
  • 36
  • 58