yield_task

Function yield_task 

Source
pub fn yield_task()
Expand description

主动放弃 CPU 切换到下一个任务 如果调用该函数的任务仍可运行,将被放回运行队列末尾,等待下一次调度