Skip to main content

with_timeout

Function with_timeout 

Source
pub async fn with_timeout<T, E, F>(
    fut: F,
    timeout: Duration,
) -> Result<T, RetryError<E>>
where F: Future<Output = Result<T, E>>,
Expand description

Run fut with an outer timeout. On timeout returns RetryError with no source.