pub trait AsyncSleep: Debug + Send + Sync {
    fn sleep(&self, duration: Duration) -> Sleep ;
}
Expand description

Async trait with a sleep function.

Required Methods§

Returns a future that sleeps for the given duration of time.

Implementations on Foreign Types§

Implementors§