Re: [whatwg/dom] Adding a return value to `controller.abort()` which represents abort completion (#881)

> How would this change https://fetch.spec.whatwg.org/#abort-fetch? It currently doesn't try to figure out success.

I think this works. The promise returned by `controller.abort()`:

- Rejects if/when `fetch()` rejects (unless the rejection is from "abort fetch")
- Fulfills if/when "abort fetch" runs. (Unless it was already rejected.)

> I'm also not sure we should use repondWith() if this can be a sequence. At least the precedent for that name is that you can call it once, right?

You're right; I think maybe I meant `waitUntil()`? A new name is also fine.

-- 
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/dom/issues/881#issuecomment-663695990

Received on Friday, 24 July 2020 19:26:23 UTC