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