Function hermit_abi::block_current_task_with_timeout
source · pub unsafe extern "C" fn block_current_task_with_timeout(timeout: u64)Expand description
Add current task to the queue of blocked tasks, but wake it when timeout milliseconds
have elapsed.
After calling block_current_task, call yield_now to switch to another task.