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
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§

RetryError
If the function fails after n attempts, the returned error will be stored in the RetryError struct