Trait AutoRuntime
tokio_global
pub trait AutoRuntime: Future { fn finish(self) -> Result<Self::Item, Self::Error>; }
Trait to bootstrap your futures.
fn finish(self) -> Result<Self::Item, Self::Error>
Runs futures to completion.
It must not be used from within async context
impl<F: Send + 'static + Future<Item = I, Error = E>, I: Send + 'static, E: Send + 'static> AutoRuntime for F