Interface Limiter

interface Limiter {
    cancel: (() => void);
    limit: ((run) => void);
    queue: RunQueue;
}

Properties

Properties

cancel: (() => void)

Cancels any outstanding function calls and scheduled queue entries

Type declaration

    • (): void
    • Cancels any outstanding function calls and scheduled queue entries

      Returns void

limit: ((run) => void)

Runs or schedules the specified function. The specified function replaces any previous function used with this limiter

Type declaration

    • (run): void
    • Runs or schedules the specified function. The specified function replaces any previous function used with this limiter

      Parameters

      • run: (() => void)
          • (): void
          • Returns void

      Returns void

queue: RunQueue

Generated using TypeDoc