Expand description
§Overview
A library which consists of declarative macros which retry the execution of functions upon failure. Sync and async execution is supported (async via tokio).
Re-exports§
pub extern crate shadow_clone;
Macros§
- retry
- Retry synchronous function without sleep in between retries. Arguments are: number of retries, function, function arguments.
- retry_
async - Retry asynchronous function without sleep in between retries. Arguments are: number of retries, function, function arguments.
- retry_
sleep - Retry synchronous function with sleep in between retries. Arguments are: number of retries, sleep time (milliseconds), function, function arguments.
Structs§
- Retry
Error - If the function fails after n attempts, the returned error will be stored in the RetryError struct