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

Function check

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

Source from the content-addressed store, hash-verified

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

Callers 15

withIndexFunction · 0.70
waitUntilFunction · 0.70
withIndexFunction · 0.70
waitForFunction · 0.70
withIndexFunction · 0.70
untilFunction · 0.70
untilFunction · 0.70
withIndexFunction · 0.70
waitForFunction · 0.70
untilFunction · 0.70
waitForFunction · 0.70
withIndexFunction · 0.70

Calls 2

conditionFunction · 0.85
resolveFunction · 0.70

Tested by

no test coverage detected