diff --git a/examples/auto_refresh.rs b/examples/auto_refresh.rs index 1b8c5f1..7711306 100644 --- a/examples/auto_refresh.rs +++ b/examples/auto_refresh.rs @@ -80,8 +80,9 @@ impl Client { async fn with_retry(&self, f: F) -> monzo::Result where - F: Fn() -> Fut, - Fut: Future>, + F: Fn() -> Fut + Send + Sync, + Fut: Future> + Send, + R: Send, { let response = f().await;