diff options
| author | Frostie314159 <[email protected]> | 2024-03-31 15:07:01 +0200 |
|---|---|---|
| committer | Frostie314159 <[email protected]> | 2024-03-31 15:07:01 +0200 |
| commit | a2f9aa592ec61beb247065003016515f0d423c13 (patch) | |
| tree | 8b0aea4a390857b12fd4781cf96b687ea7a48ca9 /embassy-time/src | |
| parent | 2d2bd679ee2d3247c94dd66fa8ec40ffa07090ab (diff) | |
Made Ticker::next Send+Sync.
Diffstat (limited to 'embassy-time/src')
| -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; |
