[][src]Trait async_embedded_traits::delay::AsyncDelayMs

pub trait AsyncDelayMs<UXX> {
    type DelayFuture: Future<Output = ()>;
    fn async_delay_ms(&mut self, ms: UXX) -> Self::DelayFuture;
}

Millisecond delay

UXX denotes the range type of the delay time. UXX can be u8, u16, etc. A single type can implement this trait for different types of UXX.

Associated Types

type DelayFuture: Future<Output = ()>

Delay future for polling on completion

Loading content...

Required methods

fn async_delay_ms(&mut self, ms: UXX) -> Self::DelayFuture

Pauses execution for ms milliseconds

Loading content...

Implementors

Loading content...