- From: Benjamin Gruenbaum <notifications@github.com>
- Date: Fri, 13 Nov 2020 10:53:33 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 13 November 2020 18:53:45 UTC
Re: API - I think the simplest API would probably be a constructor argument: ```js const childController = new AbortController(parentSignal); // creates a linked AbortController ``` I'd love to see a use case where adding the reference to the child controller at construction doesn't work. Re: weak event listeners and WeakRefs - I want to agree and echo there is no way to not "leak the thunk" - I get Node servers are not really a priority for WHATWG but I assume people with long running PWAs can likely run into this issue even if they implement the WeakRef solution you propose in userland (note you also need to keep a strong reference from the child to the parent in that case). Weak event listeners would address this as well though they feel like a much more powerful tool. -- 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-726968890
Received on Friday, 13 November 2020 18:53:45 UTC