Skip to main content

with_timeout

Function with_timeout 

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

Execute a future with a timeout