Function: processBatches()
processBatches<
T,U>(items,batchSize,processor,options?):Promise<U[]>
Defined in: tanqory-platform-packages/packages/api/sdk/src/core/pagination.ts:486
Process items in batches
Type Parameters
T
T
U
U
Parameters
items
T[]
batchSize
number
processor
(batch, batchIndex) => Promise<U[]>
options?
delayBetweenBatches?
number
onBatchComplete?
(batchIndex, results) => void
parallel?
boolean
Returns
Promise<U[]>