Skip to main content

with_timeout

Function with_timeout 

Source
pub fn with_timeout<F, T>(timeout_secs: u64, operation: F) -> Result<T>
where F: FnOnce() -> Result<T> + Send + 'static, T: Send + 'static,
Expand description

Simple timeout function for blocking operations