pub fn schedule() -> bool
Expand description
Yields the current CPU by selecting a new Task
to run
and then switching to that new Task
.
Preemption will be disabled while this function runs, but interrupts are not disabled because it is not necessary.
Return
true
if a new task was selected and switched to.false
if no new task was selected, meaning the current task will continue running.