pub async fn apply_timeout<F, T>( future: F, duration: Duration, timeout_message: &str, ) -> Result<T, ElifResponse>where F: Future<Output = T>,
Helper function to apply timeout to a future