diff options
| -rw-r--r-- | embassy-time/src/timer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-time/src/timer.rs b/embassy-time/src/timer.rs index 574d715da..a123c1d01 100644 --- a/embassy-time/src/timer.rs +++ b/embassy-time/src/timer.rs | |||
| @@ -185,7 +185,7 @@ impl Ticker { | |||
| 185 | } | 185 | } |
| 186 | 186 | ||
| 187 | /// Waits for the next tick. | 187 | /// Waits for the next tick. |
| 188 | pub fn next(&mut self) -> impl Future<Output = ()> + '_ { | 188 | pub fn next(&mut self) -> impl Future<Output = ()> + Send + Sync + '_ { |
| 189 | poll_fn(|cx| { | 189 | poll_fn(|cx| { |
| 190 | if self.expires_at <= Instant::now() { | 190 | if self.expires_at <= Instant::now() { |
| 191 | let dur = self.duration; | 191 | let dur = self.duration; |
