[−][src]Macro juggle::yield_once
Yield current task. Gives the scheduler opportunity to switch to another task.
Equivalent to Yield::once().await
.
Examples
async fn some_task(){ do_some_work(); yield_once!(); do_more_work(); yield_once!(); do_even_more_work(); }