Message from JavaScript discussions

May 2017

— This type of control should be in your hands

— 

Hmm, it should yes, but I don't know if that particular use case is something the promise should be responsible for

— The code running the xhr is the only thing that can stop the xhr with abort();

— Where else could it be?

— 

const p = fetch(url);

p.cancel();

— Should be doable

— Https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/abort

— Weirdly the compat chart has a question mark for Firefox

— I know, but there's no way to do this with native fetch I think

— Then fetch has to be fixed for that somehow, I think

— TRGWII okay

— The surface area of a fetch is only a promise, right?