[][src]Trait yukikaze::rt::AutoRuntime

pub trait AutoRuntime: Future {
    fn finish(self) -> Result<Self::Item, Self::Error>;
}

Trait to bootstrap your futures.

Required methods

fn finish(self) -> Result<Self::Item, Self::Error>

Runs futures to competition.

Yukikaze-sama uses global runtime to work on your futures

Note

It must not be used from within async context

Loading content...

Implementors

impl<F: Future> AutoRuntime for F[src]

fn finish(self) -> Result<Self::Item, Self::Error>[src]

Runs futures to competition.

Yukikaze-sama uses current_thread runtime internally which is stored in thread_local storage.

Note

It must not be used within blocking call like run

Loading content...