Skip to main content

with_timeout

Function with_timeout 

Source
pub async fn with_timeout<T, F>(
    future: F,
    timeout_ms: u64,
) -> Result<T, TimeoutError>
where F: Future<Output = T>,
Expand description

带超时执行异步操作