Re: [whatwg/dom] Add abortSignal.addAbortCallback (PR #1425)

jasnell left a comment (whatwg/dom#1425)

> ... also, your implementation ends up still using the addEventListener

Only within a hypothetical impl of the abort protocol in the existing `AbortSignal` machinery. That would not be an actual requirement tho. I showed that only for illustration.

I think the nice thing about protocol approach is that it would not require use of the `AbortSignal` class at all. From the languages point of view, an "abort signal" can be any object that happens to implement `@@Symbol.onabort` (or whatever we want to call it). Exactly how that is implemented is left entirely open.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/1425#issuecomment-3614785756
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/pull/1425/c3614785756@github.com>

Received on Friday, 5 December 2025 00:02:14 UTC