Function sleep

Source
pub fn sleep(duration: Duration) -> Result<()>
Expand description

Sleep the current thread for the provided Duration

ยงErrors

Errors on a malformed duration, or userspace data copying errors