MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / runNext

Function runNext

Support/SingleFileLibs/javascript/app.js:572–582  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

570 const concurrency = 6;
571 let idx = 0;
572 const runNext = async () => {
573 while (idx < state.libraryNames.length) {
574 const i = idx++;
575 const name = state.libraryNames[i];
576 try {
577 state.libraryBriefByName[name] = await fetchBriefForLibrary(name, ref);
578 } catch {
579 state.libraryBriefByName[name] = '';
580 }
581 }
582 };
583 await Promise.all(Array.from({ length: concurrency }, runNext));
584 }
585

Callers

nothing calls this directly

Calls 1

fetchBriefForLibraryFunction · 0.85

Tested by

no test coverage detected