Function yield_

Source
pub fn yield_() -> impl Future<Output = ()>
Expand description

Returns a future whose first call to poll will return Pending.

All other polls will result in Ready(()).

Can be used with SimpleRunner to “yield” from the future while being immediately ready to poll again.