Type alias CollectorOptions<T>

CollectorOptions<T>: {
    max?: number;
    timeLimit: number;
    filter?(item) => MaybePromise<boolean>;
}

options for constructing a collector

Type Parameters

  • T

Type declaration

  • Optional max?: number

    the max amount of entries allowed to be collected

  • timeLimit: number

    the max amount of time this collector run for before exiting (ms)

  • filter?:function

Generated using TypeDoc