with_timeout

Function with_timeout 

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

Execute a future with a timeout