Skip to main content

Module capacity

Module capacity 

Source
Expand description

CapacityBucket: a token bucket that holds a published burst, charges integer costs, and can be resized in place.

Structsยง

CapacityBucket
A token bucket for a venue that publishes a capacity and a refill rate, and charges each request a number of tokens.