Module throttler::simple [] [src]

This module contains the SimpleThrottler struct, that allows easy-to-use throttling.

Structs

SimpleThrottler

SimpleThrottler is a struct that has a number of operations allowed per time interval and the length of the inverval. It also stores the number of operations left to do in the current iterval, and when did the current interval start.