Skip to main content

timeout

Function timeout 

Source
pub async fn timeout<F, T>(dur_ms: u32, f: F) -> Result<T, TimeoutError>
where F: Future<Output = T>,