MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / tick

Function tick

__tests__/index-orphan-watchdog.test.ts:31–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 return new Promise((resolve) => {
30 const start = Date.now();
31 const tick = () => {
32 if (!isAlive(pid)) return resolve(true);
33 if (Date.now() - start > timeoutMs) return resolve(false);
34 setTimeout(tick, 100);
35 };
36 tick();
37 });
38}

Callers 1

waitForExitFunction · 0.70

Calls 2

isAliveFunction · 0.70
resolveFunction · 0.50

Tested by

no test coverage detected