Framework
Version
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference
Batcher API Reference

DebouncerState

Interface: DebouncerState<TFn>

Defined in: debouncer.ts:5

Type Parameters

TFn extends AnyFunction

Properties

canLeadingExecute

ts
canLeadingExecute: boolean;
canLeadingExecute: boolean;

Defined in: debouncer.ts:9

Whether the debouncer can execute on the leading edge of the timeout


executionCount

ts
executionCount: number;
executionCount: number;

Defined in: debouncer.ts:13

Number of function executions that have been completed


isPending

ts
isPending: boolean;
isPending: boolean;

Defined in: debouncer.ts:17

Whether the debouncer is waiting for the timeout to trigger execution


lastArgs

ts
lastArgs: undefined | Parameters<TFn>;
lastArgs: undefined | Parameters<TFn>;

Defined in: debouncer.ts:21

The arguments from the most recent call to maybeExecute


status

ts
status: "disabled" | "idle" | "pending";
status: "disabled" | "idle" | "pending";

Defined in: debouncer.ts:25

Current execution status - 'idle' when not active, 'pending' when waiting for timeout

Our Partners
Unkey
Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.