()
| 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 |
nothing calls this directly
no test coverage detected