-
Notifications
You must be signed in to change notification settings - Fork 313
Closed
Labels
addition/proposalNew features or enhancementsNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestMoving the issue forward requires implementers to express interesttopic: abortingAbortController and AbortSignalAbortController and AbortSignal
Description
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
.
Metadata
Metadata
Assignees
Labels
addition/proposalNew features or enhancementsNew features or enhancementsneeds implementer interestMoving the issue forward requires implementers to express interestMoving the issue forward requires implementers to express interesttopic: abortingAbortController and AbortSignalAbortController and AbortSignal