MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / handler

Function handler

packages/core/src/app/createApp/runSignals.ts:89–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87 if (addSignalHandler !== null) {
88 for (const signal of options.signals ?? DEFAULT_SIGNALS) {
89 const handler = () => {
90 if (settled) return;
91 settled = true;
92 detach();
93 void Promise.resolve()
94 .then(() => options.onSignal())
95 .catch(() => undefined)
96 .finally(() => {
97 resolvePromise();
98 });
99 };
100 listeners.push(Object.freeze({ signal, handler }));
101 addSignalHandler(signal, handler);
102 }

Callers 5

notifyHandlersFunction · 0.85
notifyRecordHandlersFunction · 0.85
resilience.test.tsFile · 0.85
matchFunction · 0.85

Calls 2

detachFunction · 0.85
resolveMethod · 0.80

Tested by

no test coverage detected