Skip to main content

with_timeout

Function with_timeout 

Source
pub async fn with_timeout<F, T>(
    fut: F,
    duration: Duration,
    context: &str,
) -> Result<T>
where F: Future<Output = T>,
Expand description

Execute a future with a timeout and context