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/RateLimiterState.md
Rate Limiter API Reference
RateLimiterState
Defined in: rate-limiter.ts:6
Properties#
executionCount#
ts
executionCount: number;Defined in: rate-limiter.ts:10
Number of function executions that have been completed
executionTimes#
ts
executionTimes: number[];Defined in: rate-limiter.ts:14
Array of timestamps when executions occurred for rate limiting calculations
isExceeded#
ts
isExceeded: boolean;Defined in: rate-limiter.ts:18
Whether the rate limiter has exceeded the limit
maybeExecuteCount#
ts
maybeExecuteCount: number;Defined in: rate-limiter.ts:22
Number of times maybeExecute has been called (for reduction calculations)
rejectionCount#
ts
rejectionCount: number;Defined in: rate-limiter.ts:26
Number of function executions that have been rejected due to rate limiting
status#
ts
status: "disabled" | "idle" | "exceeded";Defined in: rate-limiter.ts:30
Current execution status - 'disabled' when not active, 'executing' when executing, 'idle' when not executing, 'exceeded' when rate limit is exceeded