Type Alias ChunkOptions

ChunkOptions: InitStreamOptions & {
    elapsed: Interval;
    quantity: number;
    returnRemainder: boolean;
}

Type declaration

  • elapsed: Interval

    Amount of time to gather results for a chunk. 'elapsed' and 'quantity' is ORed. Meaning a chunk will the minimum of 'elapsed' and 'quantity'

  • quantity: number

    Number of items to gather for a chunk. 'elapsed' and 'quantity' is ORed. Meaning a chunk will the minimum of 'elapsed' and 'quantity'

  • returnRemainder: boolean

    If true (default) remaining results are yielded if source closes. If false, only chunks that meet elapsed or quantity are emitted.