Pacer Docs
API Reference
Debouncer API Reference
- DebouncerOptions
- DebouncerState
- AsyncDebouncerOptions
- AsyncDebouncerState
- debounce
- asyncDebounce
- Debouncer
- AsyncDebouncer
- ReactDebouncerOptions
- ReactAsyncDebouncerOptions
- ReactDebouncer
- ReactAsyncDebouncer
- useDebouncer
- useDebouncedCallback
- useDebouncedState
- useDebouncedValue
- useAsyncDebouncer
- useAsyncDebouncedCallback
Throttler API Reference
- ThrottlerOptions
- ThrottlerState
- AsyncThrottlerOptions
- AsyncThrottlerState
- throttle
- asyncThrottle
- Throttler
- AsyncThrottler
- ReactThrottlerOptions
- ReactAsyncThrottlerOptions
- ReactThrottler
- ReactAsyncThrottler
- useThrottler
- useThrottledCallback
- useThrottledState
- useThrottledValue
- useAsyncThrottler
- useAsyncThrottledCallback
Rate Limiter API Reference
Queue API Reference
AI/LLM: This documentation page is available in plain markdown format at/pacer/latest/docs/reference/interfaces/DebouncerState.md
Debouncer API Reference
DebouncerState
Defined in: debouncer.ts:6
Type Parameters#
TFn#
TFn extends AnyFunction
Properties#
canLeadingExecute#
ts
canLeadingExecute: boolean;Defined in: debouncer.ts:10
Whether the debouncer can execute on the leading edge of the timeout
executionCount#
ts
executionCount: number;Defined in: debouncer.ts:14
Number of function executions that have been completed
isPending#
ts
isPending: boolean;Defined in: debouncer.ts:18
Whether the debouncer is waiting for the timeout to trigger execution
lastArgs#
ts
lastArgs: Parameters<TFn> | undefined;Defined in: debouncer.ts:22
The arguments from the most recent call to maybeExecute
maybeExecuteCount#
ts
maybeExecuteCount: number;Defined in: debouncer.ts:26
Number of times maybeExecute has been called (for reduction calculations)
status#
ts
status: "disabled" | "idle" | "pending";Defined in: debouncer.ts:30
Current execution status - 'idle' when not active, 'pending' when waiting for timeout