Skip to content

Commit 7cab6c7

Browse files
committed
add comment
1 parent 8823230 commit 7cab6c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/signal/src/abortSignalAll.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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.
14
const allSignalRegistry = globalThis.FinalizationRegistry
25
? new FinalizationRegistry<() => void>((cb) => cb())
36
: null;

0 commit comments

Comments
 (0)