Trait async_sleep::Sleepble
source · pub trait Sleepble {
fn sleep(dur: Duration) -> Self;
fn wait(self) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>>;
}
pub trait Sleepble {
fn sleep(dur: Duration) -> Self;
fn wait(self) -> Pin<Box<dyn Future<Output = ()> + Send + 'static>>;
}