Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DebouncedDelegate

Prevents multiple and repetitive executions of a function, in a specific time range. Delays the execution of a _delegate, if the call method is called multiple times in a time range (_delay).

Hierarchy

  • DebouncedDelegate

Implements

Index

Constructors

Properties

_delay: number

Milliseconds after which the _delegate must be executed.

_delegate: (() => void)

Type declaration

    • (): void
    • Function to execute.

      Returns void

_timeout: Nullable<number> = null

Timeout that is set and reset every time the call method is called. After its expiring, the _delegate is executed.

Methods

  • call(): void
  • clearTimeout(): void

Generated using TypeDoc