Function tarantool::fiber::sleep

source ·
pub fn sleep(time: Duration)
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())