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

Function waitFor

telemetry-dashboard/scripts/render-check.mjs:215–225  ·  view source on GitHub ↗
(what, probe, attempts = 90)

Source from the content-addressed store, hash-verified

213}
214
215async function waitFor(what, probe, attempts = 90) {
216 for (let i = 0; i < attempts; i++) {
217 try {
218 if (await probe()) return true;
219 } catch {
220 /* not up yet */
221 }
222 await sleep(1000);
223 }
224 throw new Error(`timed out waiting for ${what}`);
225}
226
227async function main() {
228 const browserPath = findBrowser();

Callers 1

mainFunction · 0.70

Calls 1

sleepFunction · 0.70

Tested by

no test coverage detected