Skip to content

BatchProcessOptions

Defined in: index.ts:31

Options for batch processing

optional batchSize?: number

Defined in: index.ts:33

Number of items to process in parallel within each batch (default: 1)


optional continueOnError?: boolean

Defined in: index.ts:41

If true, errors are returned in results instead of throwing (default: false)


optional delayBetweenBatches?: number

Defined in: index.ts:37

Delay in milliseconds to wait between batches (useful for rate limiting)


optional flatten?: boolean

Defined in: index.ts:43

If true, returns a flat array instead of nested arrays (default: false)


optional onProgress?: (completed, total) => void

Defined in: index.ts:35

Callback function called after each batch completes, receives (completed, total) batches

number

number

void


optional retry?: RetryOptions

Defined in: index.ts:39

Retry configuration for failed tasks


optional timeout?: number

Defined in: index.ts:45

Maximum time in milliseconds for each task to complete (default: no timeout)