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

Function startTimer

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

Source from the content-addressed store, hash-verified

85 };
86
87 const startTimer = (): void => {
88 if (controller.signal.aborted || pendingElicitations > 0) return;
89 if (remainingMs <= 0) {
90 abortForTimeout();
91 return;
92 }
93 startedAt = Date.now();
94 timer = setTimeout(() => {
95 remainingMs = 0;
96 abortForTimeout();
97 }, remainingMs);
98 };
99
100 startTimer();
101

Callers 1

makeActiveWorkDeadlineFunction · 0.85

Calls 1

abortForTimeoutFunction · 0.85

Tested by

no test coverage detected