[][src]Function tarantool_module::fiber::sleep

pub fn sleep(time: f64)

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())