pub trait Timer { fn sleep(&self, dur: Duration) -> BoxFuture<'static, ()>; }
Represents the fact that an executor has timer functionality.
Future that resolves after a given duration.