Skip to main content

yield_now

Function yield_now 

Source
pub async fn yield_now()
Expand description

Gives the other tasks of this shard a turn: the task goes to the back of its shard’s run queue and runs again after the tasks queued before it. In block_on’s own future it lets the shard run its queue once.