Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MigoXLab/coderio
/ taskGenerator
Function
taskGenerator
tests/utils/promise-pool.test.ts:7–7 ·
view source on GitHub ↗
(item: number)
Source
from the content-addressed store, hash-verified
5
it(
'should process all items successfully'
,
async
() => {
6
const
items = [1, 2, 3, 4, 5];
7
const
taskGenerator =
async
(item: number) => item * 2;
8
9
const
results =
await
promisePool(items, taskGenerator, 2);
10
Callers
1
processTask
Function · 0.85
Calls
1
push
Method · 0.80
Tested by
no test coverage detected