batch
Helper to split a large number of calls into smaller batches of concurrent calls.
Parameters
| Parameter | Type | Default | Notes |
|---|---|---|---|
| values Required | IBatch |
Any array of values with which to invoke fn |
|
| fn Required | IBatchTransform |
The function that will be invoked with each value |
|
| batchSize Optional | number | 5 |
Returns
Promise<any>
Function defined in packages/common/src/utils/batch.ts:12