sleep

Function sleep 

pub fn sleep(duration: Duration)
Available on crate feature threading only.
Expand description

Put the current thread to sleep for the given duration.