- From: Benjamin Gruenbaum <notifications@github.com>
- Date: Thu, 04 Feb 2021 07:27:22 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 4 February 2021 15:27:34 UTC
> Just to clarify, the resource only stays in memory until signal is GC'd, at which point it's all collected.
The issue is that sometimes you have a (very) long living signal - a common pattern observed is:
```js
const ac = new AbortController();
process.on('SIGINT', () => ac.abort());
// Use ac around in the project ...
```
I have seen this pattern in Node.js and in browsers (mostly around router navigation).
--
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/946#issuecomment-773392318
Received on Thursday, 4 February 2021 15:27:34 UTC