Re: [whatwg/dom] Expose an `aborted` promise on AbortSignal? (#946)

> 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