@adviser/cement - v0.0.0
    Preparing search index...

    Type Alias ChunkySyncOptions<T>

    ChunkySyncOptions: ChunkyBaseOptions<T> & { commit(chunked: T[]): void }

    Configuration options for synchronous chunky processing.

    Type Parameters

    • T

      The type of items in the input iterable

    Type Declaration

    • commit: function
      • Synchronous function called to process each chunk.

        Parameters

        • chunked: T[]

          The chunk to commit

        Returns void

        commit: (chunk) => { console.log('Processing', chunk.length, 'items') }