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

Function check

__tests__/watcher.test.ts:48–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 return new Promise((resolve, reject) => {
47 const start = Date.now();
48 const check = () => {
49 if (condition()) return resolve();
50 if (Date.now() - start > timeoutMs) return reject(new Error('waitFor timed out'));
51 setTimeout(check, intervalMs);
52 };
53 check();
54 });
55}

Callers 2

waitForFunction · 0.70
SessionClass · 0.50

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected