Trait async_executors::iface::YieldNow[][src]

pub trait YieldNow {
    fn yield_now(&self) -> YieldNowFut
Notable traits for YieldNowFut
impl Future for YieldNowFut type Output = ();
{ ... } }
Expand description

Trait indicating that tasks can yield to the executor. This put’s the current task at the back of the schedulers queue, giving other tasks a chance to run.

Provided methods

Await this future in order to yield to the executor.

Implementations on Foreign Types

Implementors