Re: [whatwg/dom] Add a way to identify Abort errors originating from controllers (Issue #1033)

Sorry for the very, very late response here, but actually this likely is fine for RxJS's needs and may help discriminate cancellations that are expected from unexpected cancellations.

For RxJS's part, we might internally `ac.abort(someExpectedCancellationInstance)` or something, and then we can check for our own known cancellation.  We could then even discern between expected and unexpected cancellations within RxJS itself, and/or discern between RxJS cancellation and external cancellations from other apis.

Now, that said, the only real concern I see is the fact that in many cases `ac.signal.reason` might be keeping an `Error` instance around for a long time, and Errors tend to retain everything that was in scope when they're created in memory. But that's more of an implementation detail I suppose.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1033#issuecomment-1353821388
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1033/1353821388@github.com>

Received on Thursday, 15 December 2022 23:01:58 UTC