Provides types and utilities for accepting possibly asynchronous values, suspending execution for a given duration,
and pacing tasks with adaptive rate limiting and retries.
Possibly Asynchronous Values
Accept values supplied either directly or as promises:
constthrottle = createThrottle({ minimum:100, // At least 100ms between requests backoff:2.0, // Double delay on failure recover:0.5// Halve delay on success });
Asynchronous execution utilities.
Provides types and utilities for accepting possibly asynchronous values, suspending execution for a given duration, and pacing tasks with adaptive rate limiting and retries.
Possibly Asynchronous Values
Accept values supplied either directly or as promises:
Asynchronous Delays
Pause execution for a specified duration:
Adaptive Rate Limiting
Control execution rate with automatic backoff:
Automatic Retry Logic
Combine throttling with intelligent retry behaviour: