Skip to content

Commit

Permalink
docs: add reference to backon
Browse files Browse the repository at this point in the history
  • Loading branch information
avilagaston9 committed Oct 28, 2024
1 parent 56388b1 commit 7da5d3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions batcher/aligned-batcher/src/retry/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ impl<E> RetryError<E> {

impl<E: std::fmt::Display> std::error::Error for RetryError<E> where E: std::fmt::Debug {}

// Supports retries only on async functions. See: https://docs.rs/backon/latest/backon/#retry-an-async-function
pub async fn retry_function<FutureFn, Fut, T, E>(
function: FutureFn,
min_delay: u64,
Expand Down

0 comments on commit 7da5d3e

Please sign in to comment.