Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Max Delay Limits, Delay Hook, and
RateLimitInfo
(#1144)
Add max delay limits, delay hook, and rate limit info. This commit limits the maximum amount of rate limit delayed invocations. By setting this limit to 0, all invocations will error instantly. Otherwise, they will only error once the limit is hit. Once a delay will be suggested, the bucket will hook an optional function. This function may inform the user about the limit. The rate limit info will be provided in the dispatch error. It contains information about the duration, the active delays, maximum delays, and whether this is the first try.
- Loading branch information
Showing
3 changed files
with
184 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.