Skip to main content

xila_time_sleep

Function xila_time_sleep 

Source
pub extern "C" fn xila_time_sleep(nanoseconds: u64) -> Status
Expand description

Suspend the caller for at least the given nanoseconds on the executor’s clock. Inside a coroutine this suspends it on the executor’s timer, so other tasks run meanwhile; zero yields once. Outside a coroutine there is no executor waker for the timer, so the call polls the clock and zero returns at once. UTC corrections do not affect the wait, and u64::MAX waits practically forever.