Added remainder of the docs for embassy::time's public interface.

This commit is contained in:
Joshua Salzedo
2021-03-21 18:30:03 -07:00
parent 712204edb8
commit 8fbe83ac26
2 changed files with 76 additions and 0 deletions

View File

@ -4,6 +4,9 @@ use core::pin::Pin;
pub trait Delay {
type DelayFuture<'a>: Future<Output = ()> + 'a;
/// Future that completes after now + millis
fn delay_ms<'a>(self: Pin<&'a mut Self>, millis: u64) -> Self::DelayFuture<'a>;
/// Future that completes after now + micros
fn delay_us<'a>(self: Pin<&'a mut Self>, micros: u64) -> Self::DelayFuture<'a>;
}