Crate retry_macro
source ·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 synchronous function without sleep in between retries. Arguments are: number of retries, function, function arguments.
Retry asynchronous function without sleep in between retries. Arguments are: number of retries, function, function arguments.
Retry synchronous function with sleep in between retries. Arguments are: number of retries, sleep time (milliseconds), function, function arguments.
Structs
If the function fails after n attempts, the returned error will be stored in the RetryError struct