Defined in: async-rate-limiter.ts:6
• TFn extends AnyAsyncFunction
errorCount: number;
errorCount: number;
Defined in: async-rate-limiter.ts:10
Number of function executions that have resulted in errors
executionTimes: number[];
executionTimes: number[];
Defined in: async-rate-limiter.ts:14
Array of timestamps when executions occurred for rate limiting calculations
isExceeded: boolean;
isExceeded: boolean;
Defined in: async-rate-limiter.ts:18
Whether the rate limiter has exceeded the limit
isExecuting: boolean;
isExecuting: boolean;
Defined in: async-rate-limiter.ts:22
Whether the rate-limited function is currently executing asynchronously
lastResult: undefined | ReturnType<TFn>;
lastResult: undefined | ReturnType<TFn>;
Defined in: async-rate-limiter.ts:26
The result from the most recent successful function execution
maybeExecuteCount: number;
maybeExecuteCount: number;
Defined in: async-rate-limiter.ts:46
Number of times maybeExecute has been called (for reduction calculations)
rejectionCount: number;
rejectionCount: number;
Defined in: async-rate-limiter.ts:30
Number of function executions that have been rejected due to rate limiting
settleCount: number;
settleCount: number;
Defined in: async-rate-limiter.ts:34
Number of function executions that have completed (either successfully or with errors)
status: "disabled" | "idle" | "executing" | "exceeded";
status: "disabled" | "idle" | "executing" | "exceeded";
Defined in: async-rate-limiter.ts:38
Current execution status - 'disabled' when not active, 'executing' when executing, 'idle' when not executing, 'exceeded' when rate limit is exceeded
successCount: number;
successCount: number;
Defined in: async-rate-limiter.ts:42
Number of function executions that have completed successfully