DocumentationNeedsInvestigationhelp wanted
仓库指标
- Star
- (133,883 star)
- PR 合并指标
- (30 天内没有已合并 PR)
描述
The methods AllowN, ReserveN, WaitN take in a user-specified number of tokens to take. The documentation does not specify what happens when the number of tokens is negative.
Without digging into the details, it appears that you can actually specify a negative n, in which case it returns that number of tokens to the rate limiter.