Function sleep::future::sleep

source ·
pub fn sleep(duration: Duration, waker: Waker)
Expand description

Wakes up the waker after the specified duration.