Skip to content

Commit

Permalink
ensure all futures are 'Send' (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleades authored Feb 13, 2022
1 parent cd5ca93 commit 30e29fc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/auto_refresh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,9 @@ impl Client {

async fn with_retry<F, Fut, R>(&self, f: F) -> monzo::Result<R>
where
F: Fn() -> Fut,
Fut: Future<Output = monzo::Result<R>>,
F: Fn() -> Fut + Send + Sync,
Fut: Future<Output = monzo::Result<R>> + Send,
R: Send,
{
let response = f().await;

Expand Down

0 comments on commit 30e29fc

Please # to comment.