MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / failAllPending

Method failAllPending

src/mcp/client.ts:318–324  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

316 }
317
318 private failAllPending(err: Error): void {
319 for (const [, p] of this.pending) {
320 if (p.timeoutHandle) clearTimeout(p.timeoutHandle);
321 try { p.reject(err); } catch {}
322 }
323 this.pending.clear();
324 }
325
326 private expandEnv(env: Record<string, string>): Record<string, string> {
327 // Delegated to a tested utility — see src/utils/env-expand.ts

Callers 2

startMethod · 0.95
stopMethod · 0.95

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected