with_timeout_ms

Function with_timeout_ms 

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

Execute an async operation with a timeout in milliseconds