[][src]Function sync_async_runner::yield_

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

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.