Skip to main content

yield_now

Function yield_now 

Source
pub fn yield_now() -> YieldNow ⓘ
Expand description

Returns Pending once (after waking itself), letting the executor run other ready tasks. Works on any executor. #[psync::graph(yield_every = N)] inserts it into long loops.