Defined in: rate-limiter.ts:5
executionCount: number;
executionCount: number;
Defined in: rate-limiter.ts:9
Number of function executions that have been completed
executionTimes: number[];
executionTimes: number[];
Defined in: rate-limiter.ts:13
Array of timestamps when executions occurred for rate limiting calculations
isExceeded: boolean;
isExceeded: boolean;
Defined in: rate-limiter.ts:17
Whether the rate limiter has exceeded the limit
rejectionCount: number;
rejectionCount: number;
Defined in: rate-limiter.ts:21
Number of function executions that have been rejected due to rate limiting
status: "idle" | "disabled" | "exceeded";
status: "idle" | "disabled" | "exceeded";
Defined in: rate-limiter.ts:25
Current execution status - 'disabled' when not active, 'executing' when executing, 'idle' when not executing, 'exceeded' when rate limit is exceeded
Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.