MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / stopTimer

Function stopTimer

packages/plugins/mcp/src/sdk/invoke.ts:72–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70 let timer: ReturnType<typeof setTimeout> | undefined;
71
72 const stopTimer = (): void => {
73 if (timer === undefined || startedAt === undefined) return;
74 clearTimeout(timer);
75 timer = undefined;
76 remainingMs = Math.max(0, remainingMs - (Date.now() - startedAt));
77 startedAt = undefined;
78 };
79
80 const abortForTimeout = (): void => {
81 timer = undefined;

Callers 1

makeActiveWorkDeadlineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected