Skip to main content

Module rate

Module rate 

Source
Expand description

Token-bucket pacer for FixedRate scenarios. saturate mode never calls this. It only awaits the producer’s natural backpressure.

Structs§

Pacer
A simple steady-rate pacer.

Constants§

MIN_RATE
The slowest rate the pacer runs at. A scenario that asks for less, or for nothing at all, clamps to this rate and does not sleep for an unbounded period.