pub trait Timer {
// Required method
fn sleep(&self, dur: Duration) -> BoxFuture<'static, ()>;
}Expand description
Represents the fact that an executor has timer functionality.
pub trait Timer {
// Required method
fn sleep(&self, dur: Duration) -> BoxFuture<'static, ()>;
}Represents the fact that an executor has timer functionality.