pub async fn handle_slow_future<Fut, T, F>( future: Fut, slow_duration: Duration, callback: F, ) -> Twhere Fut: Future<Output = T>, F: FnOnce(),
Helper to run a callback when a future is taking longer than a slow_duration
slow_duration