sleep

Function sleep 

Source
pub fn sleep(time: f64)
Expand description

Put the current fiber to sleep for at least time seconds.

Yield control to the scheduler and sleep for the specified number of seconds. Only the current fiber can be made to sleep.

  • time - time to sleep

Note: this is a cancellation point (See also: is_cancelled())