MCPcopy Index your code
hub / github.com/codeaashu/claude-code / worker

Function worker

src/services/api/filesApi.ts:288–296  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

286 let currentIndex = 0
287
288 async function worker(): Promise<void> {
289 while (currentIndex < items.length) {
290 const index = currentIndex++
291 const item = items[index]
292 if (item !== undefined) {
293 results[index] = await fn(item, index)
294 }
295 }
296 }
297
298 // Start workers up to the concurrency limit
299 const workers: Promise<void>[] = []

Callers 1

parallelWithLimitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected