Trait async_executors::iface::YieldNow [−][src]
pub trait YieldNow {
fn yield_now(&self) -> YieldNowFutⓘNotable traits for YieldNowFutimpl 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
fn yield_now(&self) -> YieldNowFutⓘNotable traits for YieldNowFutimpl Future for YieldNowFut type Output = ();
fn yield_now(&self) -> YieldNowFutⓘNotable traits for YieldNowFutimpl Future for YieldNowFut type Output = ();
Notable traits for YieldNowFut
impl Future for YieldNowFut type Output = ();
Await this future in order to yield to the executor.
Implementations on Foreign Types
impl<T> YieldNow for Instrumented<T> where
T: YieldNow,
This is supported on crate feature
tracing
only.impl<T> YieldNow for WithDispatch<T> where
T: YieldNow,
This is supported on crate feature
tracing
only.fn yield_now(&self) -> YieldNowFutⓘNotable traits for YieldNowFutimpl Future for YieldNowFut type Output = ();
Notable traits for YieldNowFut
impl Future for YieldNowFut type Output = ();
fn yield_now(&self) -> YieldNowFutⓘNotable traits for YieldNowFutimpl Future for YieldNowFut type Output = ();
Notable traits for YieldNowFut
impl Future for YieldNowFut type Output = ();
fn yield_now(&self) -> YieldNowFutⓘNotable traits for YieldNowFutimpl Future for YieldNowFut type Output = ();
Notable traits for YieldNowFut
impl Future for YieldNowFut type Output = ();
fn yield_now(&self) -> YieldNowFutⓘNotable traits for YieldNowFutimpl Future for YieldNowFut type Output = ();
Notable traits for YieldNowFut
impl Future for YieldNowFut type Output = ();
fn yield_now(&self) -> YieldNowFutⓘNotable traits for YieldNowFutimpl Future for YieldNowFut type Output = ();
Notable traits for YieldNowFut
impl Future for YieldNowFut type Output = ();