Function sleep::sleep_until
source · pub fn sleep_until(resume_time: Instant) -> Result<(), RunState>
Expand description
Blocks the current task by putting it to sleep until a specific tick count is reached,
given by resume_time
.
Returns the current task’s run state if it can’t be blocked.