Skip to main content

retry_after

Function retry_after 

Source
fn retry_after(rate: f64, tokens: f64) -> Option<Duration>
Expand description

Seconds until one token is back, rounded up and capped. None when it cannot be stated, which the error then simply omits.