Przejdź do głównej zawartości

Interface: ConcurrencyOptions

Properties

max

max: number

Maximum number of requests in flight at once. A value that is not a positive, finite number disables this bound.


minIntervalMs?

optional minIntervalMs?: number

Minimum spacing between request STARTS, in milliseconds.

A ceiling on requests in flight does not bound requests per minute, and per minute is what a server-side rate limit measures: six slots against 100 ms responses sustains ~60 requests per second. Spacing is what actually bounds the limited quantity — minIntervalMs: 200 holds the process to 300 requests per minute no matter how fast the API answers.

A value that is not a positive, finite number disables this bound.