diff options
| author | Aurélien Jacobs <[email protected]> | 2024-06-14 17:42:56 +0200 |
|---|---|---|
| committer | Aurélien Jacobs <[email protected]> | 2024-06-14 17:46:32 +0200 |
| commit | 8ec2e193e283657ebe9d29361b2b32ff253633a1 (patch) | |
| tree | e8a522d7227e614012deeedeccd357cfd4a15863 /embassy-time/src/lib.rs | |
| parent | 74739997bd70d3c23b5c58d25aa5c9ba4db55f35 (diff) | |
implement with_timeout()/with_deadline() method style call on Future
Diffstat (limited to 'embassy-time/src/lib.rs')
| -rw-r--r-- | embassy-time/src/lib.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embassy-time/src/lib.rs b/embassy-time/src/lib.rs index 24ee51be7..8d0648ce5 100644 --- a/embassy-time/src/lib.rs +++ b/embassy-time/src/lib.rs | |||
| @@ -32,7 +32,7 @@ pub use delay::{block_for, Delay}; | |||
| 32 | pub use duration::Duration; | 32 | pub use duration::Duration; |
| 33 | pub use embassy_time_driver::TICK_HZ; | 33 | pub use embassy_time_driver::TICK_HZ; |
| 34 | pub use instant::Instant; | 34 | pub use instant::Instant; |
| 35 | pub use timer::{with_deadline, with_timeout, Ticker, TimeoutError, Timer}; | 35 | pub use timer::{with_deadline, with_timeout, Ticker, TimeoutError, Timer, WithTimeout}; |
| 36 | 36 | ||
| 37 | const fn gcd(a: u64, b: u64) -> u64 { | 37 | const fn gcd(a: u64, b: u64) -> u64 { |
| 38 | if b == 0 { | 38 | if b == 0 { |
