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
| Parameter | Type |
|---|---|
...args | Args |
Returns
void
Properties
| Property | Modifier | Type | Description |
|---|---|---|---|
pending | readonly | boolean | Whether 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