MCPcopy Create free account
hub / github.com/Snailclimb/JavaGuide / run

Function run

scripts/docsearch-index.mjs:209–215  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207 let next = 0;
208
209 async function run() {
210 while (next < items.length) {
211 const current = next;
212 next += 1;
213 results[current] = await worker(items[current], current);
214 }
215 }
216
217 await Promise.all(Array.from({ length: Math.min(limit, items.length) }, run));
218 return results;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected