- From: Benjamin Gruenbaum <notifications@github.com>
- Date: Sun, 21 Nov 2021 01:56:37 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Sunday, 21 November 2021 09:56:51 UTC
Hey, I recently realized that it's now impossible (since `.reason` and `.abort(reason)`) to identify `AbortError`s, it would be really useful if there was some way to identify them as originating from cancellation (timeout is cancellation in that it's not an exceptional case that should warrant monitoring probably). It would be useful either to have a property on `DOMException`s that signal cancellation/timeout users can check _or_ a branding check `AbortSignal.isAbortError` or similar. This would enhance the ergonomics of using `AbortSignal`s while allowing the flexibility of passing `reason`. -- 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/1033
Received on Sunday, 21 November 2021 09:56:51 UTC