Re: [whatwg/dom] Expose an `aborted` promise on AbortSignal? (#946)

If you replace this with a promise you would no longer be able to synchronously act on it already being aborted, right?

I think we do have this pattern, e.g., https://fetch.spec.whatwg.org/#dom-global-fetch first does a synchronous check and then adds a listener. And https://dom.spec.whatwg.org/#aborting-ongoing-activities-spec-example recommends it. But it seems to me that changing it to await a promise might change the runtime semantics.

-- 
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/946#issuecomment-773445644

Received on Thursday, 4 February 2021 16:42:33 UTC