diff options
| author | xoviat <[email protected]> | 2021-03-24 07:26:48 -0500 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-24 07:26:48 -0500 |
| commit | 08990b2f6dcd0edad9b3feb4b993390738c49989 (patch) | |
| tree | e0a79953284b90e2835a346ceabae8a98dbaa6c5 /embassy-traits/src | |
| parent | 226877b16af848dbe8553eb8789d82c301b5e584 (diff) | |
| parent | 8fbe83ac26185482069ee7b9049879cd9be01462 (diff) | |
Merge pull request #103 from theunkn0wn1/doc/time
Document remainder of embassy::time
Diffstat (limited to 'embassy-traits/src')
| -rw-r--r-- | embassy-traits/src/delay.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/embassy-traits/src/delay.rs b/embassy-traits/src/delay.rs index b893ee4a3..1e763350b 100644 --- a/embassy-traits/src/delay.rs +++ b/embassy-traits/src/delay.rs | |||
| @@ -4,6 +4,9 @@ use core::pin::Pin; | |||
| 4 | pub trait Delay { | 4 | pub trait Delay { |
| 5 | type DelayFuture<'a>: Future<Output = ()> + 'a; | 5 | type DelayFuture<'a>: Future<Output = ()> + 'a; |
| 6 | 6 | ||
| 7 | /// Future that completes after now + millis | ||
| 7 | fn delay_ms<'a>(self: Pin<&'a mut Self>, millis: u64) -> Self::DelayFuture<'a>; | 8 | fn delay_ms<'a>(self: Pin<&'a mut Self>, millis: u64) -> Self::DelayFuture<'a>; |
| 9 | |||
| 10 | /// Future that completes after now + micros | ||
| 8 | fn delay_us<'a>(self: Pin<&'a mut Self>, micros: u64) -> Self::DelayFuture<'a>; | 11 | fn delay_us<'a>(self: Pin<&'a mut Self>, micros: u64) -> Self::DelayFuture<'a>; |
| 9 | } | 12 | } |
