Skip to content

Releases: jimmycuadra/retry

0.4.0

02 Apr 10:09
Compare
Choose a tag to compare
0.4.0 Pre-release
Pre-release

Breaking changes:

  • Functions that took u32 values as arguments now take u64 values instead.

New features:

  • A new convenience function, retry_exponentially, is similar to the retry function but uses an f64 wait value as the multiplier for exponential backoff.
  • New methods for the Retry builder type:
    • timeout for setting the maximum amount of time before failure.
    • wait_between for adding some random jitter to the amount of delay between each try.
    • wait_exponentially for waiting exponentially longer with each try.

Improvements:

  • Uses of the deprecated std::thread::sleep_ms have been replaced with std::thread::sleep.

0.3.0

14 Apr 07:04
Compare
Choose a tag to compare
0.3.0 Pre-release
Pre-release
  • Added: Retry type for incrementally building a retryable operation. Currently, this allows for retrying an operation infinitely. Soon it will allow for more customizations of behavior.

0.2.0

14 Apr 07:01
Compare
Choose a tag to compare
0.2.0 Pre-release
Pre-release
  • Changed: The retry function's times argument is now a u32 instead of a usize.