-
Notifications
You must be signed in to change notification settings - Fork 313
Open
Labels
topic: abortingAbortController and AbortSignalAbortController and AbortSignal
Description
Splitting this from #1016.
Writing a robust userland AbortSignal
consumer is tricky. In particular you might not get your event listener due to someone else listening calling stopImmediatePropagation()
.
Possible solutions:
- We invent a new way of dispatching that disallows preventing
stopImmediatePropagation()
. (@smaug---- is not a fan of this as per the other thread.) - The consumer uses
AbortSignal.any()
to get a copy without other event listeners and registers their event listener there. - We define userland "abort algorithms" somehow.
benjamingr
Metadata
Metadata
Assignees
Labels
topic: abortingAbortController and AbortSignalAbortController and AbortSignal