We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8823230 commit 7cab6c7Copy full SHA for 7cab6c7
packages/signal/src/abortSignalAll.ts
@@ -1,3 +1,6 @@
1
+// Some runtimes doesn't implement FinalizationRegistry. For those, we don't handle GC of signals
2
+// and only rely on signal abortion. It is ok because most of the time they are short live runtime,
3
+// and it's any just an optimization. It will not break the resolution, only miss or delay abortion.
4
const allSignalRegistry = globalThis.FinalizationRegistry
5
? new FinalizationRegistry<() => void>((cb) => cb())
6
: null;
0 commit comments