An util for retaining an unique snapshot of data while the previous snapshot is being processed

Hierarchy

Constructors

Properties

callback: ((data: void) => Promise<number>)

Type declaration

    • (data: void): Promise<number>
    • Parameters

      • data: void

      Returns Promise<number>

debouncedTimeoutId: undefined | Timeout
lastRun: number = 0
options: {
    callbackFn: (() => Promise<number>);
    name: string;
}

Type declaration

  • callbackFn: (() => Promise<number>)
      • (): Promise<number>
      • Returns Promise<number>

  • name: string
pendingData: undefined | void
pendingRun: boolean = false
running: boolean = false
throttle: number = 0

Methods

Generated using TypeDoc