pub trait AsyncSleep: Debug + Send + Sync { fn sleep(&self, duration: Duration) -> Sleep ⓘ; }
Async trait with a sleep function.
sleep
Returns a future that sleeps for the given duration of time.
duration