pub trait Timer: Send + Sync + 'static { // Required method fn sleep(&self, duration: Duration) -> Pin<Box<dyn EventFuture>>; }
Runtime independent sleep trait.
Returns a future that is ready after duration.