web-stream-kit
    Preparing search index...

    Interface BatchStreamOptions

    Options configuring chunk batching behavior.

    interface BatchStreamOptions {
        batchSize: number;
        maxWaitMs?: number;
    }
    Index
    batchSize: number

    The maximum number of items to accumulate before emitting a batch.

    maxWaitMs?: number

    Optional timeout in milliseconds to flush an incomplete batch.