pub trait Sleep: Send + Sync {
// Required method
fn sleep_until(&self, at_ms: i64) -> BoxFuture<()>;
}Expand description
Waits until a point in time of the shell’s Clock.
Required Methods§
Sourcefn sleep_until(&self, at_ms: i64) -> BoxFuture<()>
fn sleep_until(&self, at_ms: i64) -> BoxFuture<()>
A future that completes once the clock reads at least at_ms.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".