MCPcopy Create free account
hub / github.com/TanStack/ai / worker

Function worker

packages/ai-code-mode-skills/test-cli/cli.ts:285–292  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

283 const workers: Promise<void>[] = []
284
285 async function worker() {
286 while (taskQueue.length > 0) {
287 const task = taskQueue.shift()
288 if (task) {
289 await runTask(task)
290 }
291 }
292 }
293
294 // Start workers
295 for (let i = 0; i < Math.min(concurrency, tasks.length); i++) {

Callers 1

runParallelFunction · 0.85

Calls 1

runTaskFunction · 0.85

Tested by

no test coverage detected