Skip to main content

with_timeout

Function with_timeout 

Source
pub async fn with_timeout<F, T>(duration: Duration, f: F) -> Result<T, Elapsed>
where F: Future<Output = T>,
Expand description

Run an async test with timeout