Re: [whatwg/webidl] Proposal: DOMException.ignoreAborts(promise) (#933)

I still think `DOMException.ignoreAborts()`, which only ignores `"AbortError"` `DOMException`s, is a good idea. As I've stated over in https://github.com/whatwg/dom/issues/1033#issuecomment-974869224, I don't think the fact that you can change the reason, changes how consumers should treat the result. Most cases don't want a general "ignore any abort reason"; they want "ignore `"AbortError"` `DOMException`".

In particular, given the motivating case for branching out, i.e. `"TimeoutError"` `DOMException`, you generally *don't* want to ignore timeouts for a fetch. You want to tell the user: "the operation timed out". Whereas you *do* want to ignore aborts: the user is probably the one that caused an abort.

-- 
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/webidl/issues/933#issuecomment-976768023

Received on Tuesday, 23 November 2021 16:03:01 UTC