@vgerbot/async
    Preparing search index...

    Class DebounceTaskExecutor

    A task executor that delays invoking a task until after wait milliseconds have elapsed since the last time a task was submitted. Useful for rate-limiting execution of tasks.

    Milliseconds to delay invocation after the last exec() call.

    Additional configuration options.

    Invoke on the leading edge (first call). Default false.

    Invoke on the trailing edge (after silence). Default true.

    Maximum time a task can be delayed before forced invocation.

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    Methods

    • Checks if the executor is shut down and throws ExecutorShutdownError if so. Subclasses should call this at the start of exec().

      Parameters

      • message: string = "Executor permanently shut down"

        Optional custom error message

      Returns void

      if the executor is shut down