Re: [whatwg/dom] Consider adding AbortController.prototype.follow(signal) (#920)

> The handler would have to be weak so that if the operation completes successfully the parent controller's signal does not keep a reference to the child controller. This is impossible in userland because `addEventListener`'s API takes a function.

@benjamingr I've been playing with this idea using `WeakRef` and `FinalizationRegistry`, and I think I may have come up with [something that works](https://github.com/nodejs/node/discussions/36467), although it isn't trivial to test.

-- 
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/920#issuecomment-742409411

Received on Thursday, 10 December 2020 09:49:41 UTC