Skip to main content

with_default_timeout

Function with_default_timeout 

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

Execute a future with the default timeout