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
AsyncRetryerState
Defined in: async-retryer.ts:5
Type Parameters#
TFn#
TFn extends AnyAsyncFunction
Properties#
currentAttempt#
currentAttempt: number;Defined in: async-retryer.ts:9
The current retry attempt number (0 when not executing)
executionCount#
executionCount: number;Defined in: async-retryer.ts:13
Total number of completed executions (successful or failed)
isExecuting#
isExecuting: boolean;Defined in: async-retryer.ts:17
Whether the retryer is currently executing the function
lastError#
lastError: Error | undefined;Defined in: async-retryer.ts:21
The most recent error encountered during execution
lastExecutionTime#
lastExecutionTime: number;Defined in: async-retryer.ts:25
Timestamp of the last execution completion in milliseconds
lastResult#
lastResult: Awaited<ReturnType<TFn>> | undefined;Defined in: async-retryer.ts:29
The result from the most recent successful execution
status#
status: "disabled" | "idle" | "executing" | "retrying";Defined in: async-retryer.ts:33
Current execution status - 'disabled' when not enabled, 'idle' when ready, 'executing' when running
totalExecutionTime#
totalExecutionTime: number;Defined in: async-retryer.ts:37
Total time spent executing (including retries) in milliseconds