MCPcopy Index your code
hub / github.com/callstack/agent-device / normalizeTimeoutMs

Function normalizeTimeoutMs

src/utils/exec.ts:695–700  ·  view source on GitHub ↗
(value: number | undefined)

Source from the content-addressed store, hash-verified

693}
694
695function normalizeTimeoutMs(value: number | undefined): number | undefined {
696 if (!Number.isFinite(value)) return undefined;
697 const timeout = Math.floor(value as number);
698 if (timeout <= 0) return undefined;
699 return timeout;
700}
701
702function watchCommandAbort(
703 child: ChildProcess,

Callers 2

runSpawnedCommandFunction · 0.85
runCmdSyncFunction · 0.85

Calls 1

isFiniteMethod · 0.80

Tested by

no test coverage detected