goldies
    Preparing search index...

    Interface ThrottledFunction<F>

    A throttled function, returned by throttle.

    interface ThrottledFunction<F extends (...args: never[]) => unknown> {
        cancel(): void;
        flush(): void;
        (this: ThisParameterType<F>, ...args: Parameters<F>): void;
    }

    Type Parameters

    • F extends (...args: never[]) => unknown
    • Parameters

      • this: ThisParameterType<F>
      • ...args: Parameters<F>

      Returns void

    Index
    • Drops the pending call, if there is one.

      Returns void

    • Makes the pending call right away, if there is one.

      Returns void