MCPcopy
hub / github.com/di-sukharev/opencommit / validateTimeout

Function validateTimeout

out/cli.cjs:66557–66561  ·  view source on GitHub ↗
({ timeout })

Source from the content-addressed store, hash-verified

66555 timeoutKill(spawned, killSignal, reject);
66556 }, timeout);
66557 });
66558 const safeSpawnedPromise = spawnedPromise.finally(() => {
66559 clearTimeout(timeoutId);
66560 });
66561 return Promise.race([timeoutPromise, safeSpawnedPromise]);
66562};
66563var validateTimeout = ({ timeout }) => {
66564 if (timeout !== void 0 && (!Number.isFinite(timeout) || timeout < 0)) {

Callers 1

execaFunction · 0.85

Calls 1

isFiniteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…