Skip to content

Interface: Debounced()<Args> ​

A debounced function with explicit control over pending calls.

Type Parameters ​

Type Parameter
Args extends unknown[]
ts
Debounced(...args): void;

A debounced function with explicit control over pending calls.

Parameters ​

ParameterType
...argsArgs

Returns ​

void

Properties ​

PropertyModifierTypeDescription
pendingreadonlybooleanWhether a call is waiting to run.

Methods ​

cancel() ​

ts
cancel(): void;

Drop the pending call without running it.

Returns ​

void


flush() ​

ts
flush(): void;

Run the pending call now, if there is one.

Returns ​

void