Trait async_executors::iface::Timer[][src]

pub trait Timer {
    fn sleep(&self, dur: Duration) -> BoxFuture<'static, ()>;
}
Expand description

Represents the fact that an executor has timer functionality.

Required methods

Future that resolves after a given duration.

Implementations on Foreign Types

Implementors