[][src]Trait act_zero::timer::SupportsTimers

pub trait SupportsTimers {
    type Delay: Future<Output = ()> + Send + 'static;
    pub fn delay(&self, deadline: Instant) -> Self::Delay;
}

Timers can be used on runtimes implementing this trait.

Associated Types

type Delay: Future<Output = ()> + Send + 'static[src]

The type of future returned by delay.

Loading content...

Required methods

pub fn delay(&self, deadline: Instant) -> Self::Delay[src]

Create a future which will complete when the deadline is passed.

Loading content...

Implementors

impl SupportsTimers for Runtime[src]

type Delay = Pending<()>

Loading content...