Framework
Version
Debouncer API Reference
Throttler API Reference
Rate Limiter API Reference
Queue API Reference
Batcher API Reference

RateLimiterState

Interface: RateLimiterState

Defined in: rate-limiter.ts:5

Properties

executionCount

ts
executionCount: number;
executionCount: number;

Defined in: rate-limiter.ts:9

Number of function executions that have been completed


executionTimes

ts
executionTimes: number[];
executionTimes: number[];

Defined in: rate-limiter.ts:13

Array of timestamps when executions occurred for rate limiting calculations


rejectionCount

ts
rejectionCount: number;
rejectionCount: number;

Defined in: rate-limiter.ts:17

Number of function executions that have been rejected due to rate limiting

Subscribe to Bytes

Your weekly dose of JavaScript news. Delivered every Monday to over 100,000 devs, for free.

Bytes

No spam. Unsubscribe at any time.