MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / isBrokenPipeError

Function isBrokenPipeError

src/core/process-lifecycle.ts:50–54  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

48}
49
50export function isBrokenPipeError(error: unknown): boolean {
51 if (!error || typeof error !== "object") return false;
52 const { code } = error as ErrorWithCode;
53 return typeof code === "string" && BROKEN_PIPE_CODES.has(code);
54}
55
56export function getIdleShutdownMs(value: string | undefined): number {
57 const normalized = value?.trim().toLowerCase();

Callers 2

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected