@tusss/ood
    Preparing search index...

    Interface BatchExecutorOptions<TOps>

    Configuration options for creating a BatchExecutor.

    interface BatchExecutorOptions<TOps> {
        capacity?: number;
        execute: (ops: TOps[]) => Promise<void>;
        name?: string;
    }

    Type Parameters

    • TOps

      The type of individual operations in the batch.

    Index

    Properties

    capacity?: number

    The maximum number of operations that can be held in a batch.

    100
    
    execute: (ops: TOps[]) => Promise<void>

    The callback function that processes a batch of operations.

    Type Declaration

      • (ops: TOps[]): Promise<void>
      • Parameters

        • ops: TOps[]

          An array of queued operations to execute.

        Returns Promise<void>

        A promise that resolves when execution is complete.

    name?: string

    The name identifying this batch executor instance.

    "batch-executor"