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

Function getIdleShutdownMs

src/core/process-lifecycle.ts:56–60  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

54}
55
56export function getIdleShutdownMs(value: string | undefined): number {
57 const normalized = value?.trim().toLowerCase();
58 if (normalized && ["0", "false", "off", "disabled", "none"].includes(normalized)) return 0;
59 return Math.max(MIN_IDLE_TIMEOUT_MS, toIntegerOr(value, DEFAULT_IDLE_TIMEOUT_MS));
60}
61
62export function getParentPollMs(value: string | undefined): number {
63 return Math.max(MIN_PARENT_POLL_MS, toIntegerOr(value, DEFAULT_PARENT_POLL_MS));

Callers 2

mainFunction · 0.85

Calls 1

toIntegerOrFunction · 0.70

Tested by

no test coverage detected