MCPcopy Index your code
hub / github.com/nodejs/node / refreshCompositeSignal

Function refreshCompositeSignal

lib/internal/abort_controller.js:140–157  ·  view source on GitHub ↗
(signal)

Source from the content-addressed store, hash-verified

138}
139
140function refreshCompositeSignal(signal) {
141 if (!signal[kComposite] || signal[kAborted] || !signal[kSourceSignals]?.size) {
142 return;
143 }
144
145 for (const sourceSignalWeakRef of signal[kSourceSignals]) {
146 const sourceSignal = sourceSignalWeakRef.deref();
147 if (sourceSignal === undefined) {
148 signal[kSourceSignals].delete(sourceSignalWeakRef);
149 continue;
150 }
151
152 if (sourceSignal.aborted) {
153 abortSignal(signal, sourceSignal.reason);
154 return;
155 }
156 }
157}
158
159function followCompositeSignal(signal) {
160 if (signal[kFollowing] || signal[kAborted] || !signal[kSourceSignals]?.size) {

Callers 4

abortedMethod · 0.85
reasonMethod · 0.85
throwIfAbortedMethod · 0.85
anyMethod · 0.85

Calls 2

abortSignalFunction · 0.85
deleteMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…