1.0.0
retry
's API is now stable for the 1.0 series.
New features:
- Added a
retry_with_index
function that works likeretry
, but passes the number of the current try (asu64
) as an argument to the supplied closure.
Improvements:
retry::delay::{Exponential, Fibonacci}
now implementFrom<std::time::Duration>
.retry::delay::Range
now implementsFrom<std::ops::Range<std::time::Duration>>
andFrom<std::ops::RangeInclusive<std::time::Duration>>
.