[][src]Trait osaka::Future

pub trait Future<R> {
    fn poll(&mut self) -> FutureResult<R>;
}

something that can be resumed

Required methods

fn poll(&mut self) -> FutureResult<R>

Loading content...

Implementors

impl<R> Future<R> for Task<R>[src]

fn poll(&mut self) -> FutureResult<R>[src]

this is called by the execution engine, or a sync macro.

you can call this by hand, but it won't actually do anything unless the task contains a token that is ready, or has an expired deadline

impl<R, X> Future<R> for X where
    X: Generator<Yield = Again, Return = R> + Unpin
[src]

Loading content...