Expand description
Exponential backoff.
Structs§
Functions§
- get_
backoff_ iter - Get a iterator of
Durations which can be passed into e.g.tokio::time::sleepto observe time-based exponential backoff. - iter_
with_ initial_ wait_ ms - Like
get_backoff_iter, but allows specifying the initial wait time in milliseconds.