Re: [whatwg/dom] Disposable AbortController (Issue #1405)

bakkot left a comment (whatwg/dom#1405)

As it says in the OP, @rbuckton has [argued against this](https://github.com/whatwg/html/issues/8557#issuecomment-1724193449) because he wants some way to mark an AbortController as "closed but not aborted" and remove all callbacks, and wants this to be the default disposing behavior.

But yes, it could be done that way. That said, I expect [a lot of tooling](https://github.com/typescript-eslint/typescript-eslint/issues/8255) to (eventually) highlight when a disposable value is not used with `using`, which means it may be undesirable for APIs which aren't primarily used this way to be disposable.

Though, maybe it _should_ primarily be used with `using`? A majority of my AbortControllers (although far from all) don't live beyond their declaring scope.

Anyway, I'm OK either way.

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

Message ID: <whatwg/dom/issues/1405/3349543637@github.com>

Received on Tuesday, 30 September 2025 00:50:28 UTC