[−][src]Trait tokio_global::AutoRuntime
Trait to bootstrap your futures.
Required methods
fn wait(self) -> Self::Output where
Self: Send + Future + 'static,
Self::Output: Send + 'static,
Self: Send + Future + 'static,
Self::Output: Send + 'static,
Blocks and waits for future to finish.
fn spawn(self) -> JoinHandle<Self::Output> where
Self: Send + Future + 'static,
Self::Output: Send + 'static,
Self: Send + Future + 'static,
Self::Output: Send + 'static,
Spawns futures onto global runtime.
Note
Can be used in any context, but it requires future that returns nothing