Function blue_build_utils::retry

source ·
pub fn retry<V, F>(retries: u8, delay_secs: u64, f: F) -> Result<V>
where F: Fn() -> Result<V>,
Expand description

Performs a retry on a given closure with a given nubmer of attempts and delay.

§Errors

Will error when retries have been expended.