AxRateLimiterTokenUsage
Class: AxRateLimiterTokenUsage
Constructors
new AxRateLimiterTokenUsage()
new AxRateLimiterTokenUsage(
maxTokens
,refillRate
,options
?):AxRateLimiterTokenUsage
Parameters
• maxTokens: number
• refillRate: number
• options?: Readonly
<AxRateLimiterTokenUsageOptions
>
Returns
Defined in
Methods
acquire()
acquire(
tokens
):Promise
<void
>
Parameters
• tokens: number
Returns
Promise
<void
>