Configuration options for the throttle
Optionalminimum?: numberThe minimum delay between task executions in milliseconds; must be non-negative
Optionalmaximum?: numberThe maximum delay between task executions in milliseconds; 0 means no limit
Optionalbuildup?: numberThe exponential factor for queue-based delay increases; must be >= 1.0
Optionalbackoff?: numberThe multiplicative factor for increasing delays on task failure; must be >= 1.0
Optionalrecover?: numberThe multiplicative factor for decreasing delays on task success; must be 0.0-1.0
A throttle instance for rate-limiting operations
Creates an adaptive throttle for rate-limiting concurrent task execution.
The throttle combines two independent delay mechanisms:
These mechanisms work together: buildup provides immediate load-based throttling, while backoff/recover adapt the baseline rate based on system feedback over time.