with_timeout_named

Function with_timeout_named 

Source
pub async fn with_timeout_named<F, T>(
    name: impl Into<String>,
    duration: Duration,
    future: F,
) -> Result<T, TimeoutError>
where F: Future<Output = T>,
Expand description

Execute an async operation with timeout and operation name.