Options
All
  • Public
  • Public/Protected
  • All
Menu

A throttled function

Type parameters

Hierarchy

  • (...args: Args) => Promise<ReturnType<F>>
    • Throttled

Callable

  • __call(...args: Args): Promise<ReturnType<F>>

Index

Methods

Methods

cancel

  • cancel(reason?: Error): void
  • Cancels pending execution. Pending results will be rejected.

    Parameters

    • Optional reason: Error

      Optional reason to reject results with.

    Returns void

flush

  • flush(): void
  • Causes any pending execution to fire on next runtime loop Subsequent calls will not defer this execution

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc