pub fn with_timeout<F, T>(timeout_secs: u64, operation: F) -> Result<T>where F: FnOnce() -> Result<T> + Send + 'static, T: Send + 'static,
Simple timeout function for blocking operations