# Packages
No description provided by the author
# Functions
GetConfigOverrides returns the config overrides from the context, if any.
No description provided by the author
No description provided by the author
WithLimitDetectedCallback adds a callback to be called when a new active rate limit is detected.
WithOverrideConfig adds config overrides to the context.
WithSingleSleepLimit adds a limit to the duration allowed to wait for a single sleep (rate limit).
WithTotalSleepLimit adds a limit to the accumulated duration allowed to wait for all sleeps (one or more rate limits).
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
CallbackContext is passed to all callbacks.
No description provided by the author
SecondaryRateLimitConfig is the config for the secondary rate limit waiter.
No description provided by the author
# Type aliases
OnLimitDetected is a callback to be called when a new rate limit is detected (before the sleep) The totalSleepTime includes the sleep time for the upcoming sleep Note: called while holding the lock.
OnSingleLimitPassed is a callback to be called when a rate limit is exceeding the limit for a single sleep.
OnTotalLimitExceeded is a callback to be called when a rate limit is exceeding the limit for the total sleep.
No description provided by the author