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

bakkot left a comment (whatwg/dom#1425)

@jasnell There's no need to define a symbol-based protocol. The protocol for consumers can literally be "call `.addAbortCallback(yourCleanupFunction)`". That requires no other changes from WHATWG.

(Though I agree that a `removeAbortCallback(yourCleanupFunction)`, or similar mechanism, would also be nice.)

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

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

Received on Thursday, 4 December 2025 23:54:07 UTC