Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "Timing"

Index

Functions

Functions

throttler

  • throttler(freq: number): Function
  • A shared throttle. Safe to be used by multiple asynchronous requests at the same time.

    Parameters

    • freq: number

      The number of milliseconds between resolution of this function

    Returns Function

wait

  • wait(ms: number): Promise<void>
  • An asynchronous wait function. Just useful for throttling purposes.

    Parameters

    • ms: number

      The number of milliseconds to wait before resolving the promise

    Returns Promise<void>

Generated using TypeDoc