-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AbortSignal "signal abort" ordering #493
Comments
On IRC @mikewest had minor concerns about the ordering, but "WebAuthn will be fine either way". |
To me the basic problem here is that we're using the abort algorithms as pseudo-event-handlers. What you would ideally like is for them to be interleaved, I think. Unless we're interested in creating an "abstract event listeners" concept, I'm not sure this is worth solving. |
For clarity: I'm fine with either outcome. It doesn't seem to matter for the use cases I have in mind. It does seem like it would be best to agree upon behavior, but as long as there's agreement, I'm happy. |
There is agreement in the standard and in the tests. It's just unclear whether there's some scenario not considered that would be better served by different ordering. Given the length of time this has been open however, I'd encourage @jakearchibald to consider it closed (and close it) as it seems unlikely new information will come forward. If there's any fallout later on we can reconsider at that point. |
Agreed |
https://dom.spec.whatwg.org/#abortsignal-signal-abort
Currently the order is:
If you want to create a new signal that copies another signal, you do something like this:
AbortSignal
.A side effect of this, is the "abort" event will despatch on signal before originalSignal.
In the code above, "clone" is logged before "original". Is this a problem?
cc @domenic @annevk @wycats @mikewest @bterlson @jyasskin
The text was updated successfully, but these errors were encountered: