MCPcopy Create free account
hub / github.com/adcontextprotocol/adcp / worker

Function worker

scripts/check-owned-links.js:117–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 let cursor = 0;
116
117 async function worker() {
118 while (true) {
119 const index = cursor++;
120 if (index >= urls.length) return;
121 results[index] = await checkUrl(urls[index]);
122 }
123 }
124
125 await Promise.all(Array.from({ length: CONCURRENCY }, worker));
126

Callers 1

Calls 1

checkUrlFunction · 0.85

Tested by

no test coverage detected