Struct async_core::YieldFuture
source · pub struct YieldFuture(_);
Expand description
A future which returns Pending once, and returns Ready the next time it is polled. Used to interrupt a running task to make space for others to run.
Trait Implementations§
source§impl Future for YieldFuture
impl Future for YieldFuture
Auto Trait Implementations§
impl RefUnwindSafe for YieldFuture
impl Send for YieldFuture
impl Sync for YieldFuture
impl Unpin for YieldFuture
impl UnwindSafe for YieldFuture
Blanket Implementations§
source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more