bunqueue v2.8 API referenceall versions · guide
bunqueue
    Preparing search index...

    Interface BatchConfig<T, R>

    Batch processing configuration

    interface BatchConfig<T = unknown, R = unknown> {
        processor: BatchProcessor<T, R>;
        size: number;
        timeout?: number;
    }

    Type Parameters

    • T = unknown
    • R = unknown
    Index
    processor: BatchProcessor<T, R>

    Batch processor function

    size: number

    Batch size (default: 10)

    timeout?: number

    Max wait in ms before flushing partial batch (default: 5000)