[][src]Function pbft_engine::timing::retry_until_ok

pub fn retry_until_ok<T, E, F: FnMut() -> Result<T, E>>(
    base: Duration,
    max: Duration,
    callback: F
) -> T

With exponential backoff, repeatedly try the callback until the result is Ok