- From: Kevin Gibbons <notifications@github.com>
- Date: Wed, 24 Sep 2025 07:03:21 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 24 September 2025 14:07:24 UTC
bakkot created an issue (whatwg/dom#1405) ### What is the issue with the DOM Standard? Now that [explicit resource management](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Resource_management) is shipping, it would be very useful if there were a way to get an AbortController which aborted when disposed. That would let you write ```js using controller = new AbortController.AutoAbort(); let pages = await Promise.all(urls.map(url => fetch(url, { signal: controller.signal })); // automatically cancels outstanding requests if any request fails ``` without needing an explicit try/finally. See some further discussion [here](https://github.com/whatwg/html/issues/8557#issuecomment-1331448189). -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/1405 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/1405@github.com>
Received on Wednesday, 24 September 2025 14:07:24 UTC