Skip to main content

execute_with_retries

Function execute_with_retries 

Source
pub async fn execute_with_retries<F, Fut, T, E>(
    config: &RetryConfig,
    execute: F,
) -> Result<T, E>
where F: FnMut() -> Fut, Fut: Future<Output = Result<T, E>>, E: IsRetryable + Display,
Expand description

If execution results in EngineHangup or EngineInternal, retry.

See the test variation of this: [crate::test_util::execute_with_retries].