Releases: jimmycuadra/retry
Releases · jimmycuadra/retry
0.4.0
Breaking changes:
- Functions that took
u32
values as arguments now takeu64
values instead.
New features:
- A new convenience function,
retry_exponentially
, is similar to theretry
function but uses anf64
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 withstd::thread::sleep
.
0.3.0
- 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
- Changed: The
retry
function'stimes
argument is now au32
instead of ausize
.