Skip to content

1.0.0

Compare
Choose a tag to compare
@jimmycuadra jimmycuadra released this 12 Jan 00:34
1.0.0

retry's API is now stable for the 1.0 series.

New features:

  • Added a retry_with_index function that works like retry, but passes the number of the current try (as u64) as an argument to the supplied closure.

Improvements:

  • retry::delay::{Exponential, Fibonacci} now implement From<std::time::Duration>.
  • retry::delay::Range now implements From<std::ops::Range<std::time::Duration>> and From<std::ops::RangeInclusive<std::time::Duration>>.