Optionaloptions: DebounceOptionsCancels tasks on this executor.
This does not permanently disable the executor. Use shutdown() for that.
Optionalreason: unknownOptional reason for cancellation
Cancels tasks on this executor.
This does not permanently disable the executor. Use shutdown() for that.
Cancels tasks on this executor.
This does not permanently disable the executor. Use shutdown() for that.
Optional reason for cancellation
Cancels tasks on this executor.
This does not permanently disable the executor. Use shutdown() for that.
OptionalreasonOrOptions: unknownOptionalmaybeOptions: TaskCancelOptionsProtectedcancelOptionalreason: unknownProtectedcancelHandles selective cancellation requests (e.g., by task kind). Default behaviour upgrades to a full cancellation.
ProtectedcheckProtectedgetReturns true if this executor has been permanently shut down. Kept for backward compatibility.
ProtectedisProtectedonHook for subclasses to cancel current and queued tasks.
Called whenever cancel() without filters is invoked.
Optionalreason: unknownProtectedonHook for subclasses to perform permanent shutdown cleanup. Default behavior first cancels all tasks. Subclasses can extend this to stop internal workers/timers.
Optionalreason: unknownThe shutdown reason
Optionalreason: unknown
A task executor that delays invoking a task until after
waitmilliseconds have elapsed since the last time a task was submitted. Useful for rate-limiting execution of tasks.Param: wait
Milliseconds to delay invocation after the last
exec()call.Param: options
Additional configuration options.
Param: options.leading
Invoke on the leading edge (first call). Default
false.Param: options.trailing
Invoke on the trailing edge (after silence). Default
true.Param: options.maxWait
Maximum time a task can be delayed before forced invocation.