aboutsummaryrefslogtreecommitdiff
path: root/embassy-traits/src
diff options
context:
space:
mode:
authorxoviat <[email protected]>2021-03-24 07:26:48 -0500
committerGitHub <[email protected]>2021-03-24 07:26:48 -0500
commit08990b2f6dcd0edad9b3feb4b993390738c49989 (patch)
treee0a79953284b90e2835a346ceabae8a98dbaa6c5 /embassy-traits/src
parent226877b16af848dbe8553eb8789d82c301b5e584 (diff)
parent8fbe83ac26185482069ee7b9049879cd9be01462 (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.rs3
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;
4pub trait Delay { 4pub 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}