//! Types and Traits for working with asynchronous tasks.
usecrate::time::{Duration, Instant, Timer, Wait};/// Sleeps for the specified amount of time.
pubfnsleep(dur: Duration)-> Wait{Timer::after(dur).wait()}/// Sleeps until the specified instant.
pubfnsleep_until(deadline: Instant)-> Wait{Timer::at(deadline).wait()}