TESSA Web API
    Preparing search index...

    Function debounce

    • Creates a debounced function that delays invoking func until after wait milliseconds have elapsed since the last time the debounced function was invoked.

      Type Parameters

      • T extends Function

      Parameters

      • func: T

        Invoking func.

      • wait: number

        Wait milliseconds.

      • Optionalimmediate: boolean

        Whether the func should be invoked immediately.

      Returns T & { dispose: () => void }

      Debounced function along with its disposer.