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

Type Parameters

  • T = void

  • R = unknown

Hierarchy

Constructors

Properties

callback: ((data: T) => Promise<R>)

Type declaration

    • (data: T): Promise<R>
    • Parameters

      • data: T

      Returns Promise<R>

lastRun: number = 0
pendingData: undefined | T
pendingRun: boolean = false
running: boolean = false
throttle: number = 0

Methods

Generated using TypeDoc