MCPcopy Create free account
hub / github.com/cloudflare/agents / runNext

Function runNext

scripts/typecheck.ts:45–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43const active: Promise<void>[] = [];
44
45async function runNext(): Promise<void> {
46 while (queue.length > 0) {
47 const tsconfig = queue.shift()!;
48 const result = await checkProject(tsconfig);
49 results.push(result);
50 if (result.success) {
51 console.log(` ✅ ${result.tsconfig}`);
52 } else {
53 console.error(` ❌ ${result.tsconfig}`);
54 }
55 }
56}
57
58for (let i = 0; i < concurrency; i++) {
59 active.push(runNext());

Callers 1

typecheck.tsFile · 0.85

Calls 3

checkProjectFunction · 0.85
logMethod · 0.65
errorMethod · 0.65

Tested by

no test coverage detected