with_timeout_secs

Function with_timeout_secs 

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

Execute an async operation with a timeout in seconds