[][src]Function tokio_global::single::run

pub fn run<R: IntoFuture, F: FnOnce() -> R>(
    runner: F
) -> Result<R::Item, R::Error>

Starts function within tokio runtime that returns future and awaits its completion.

Note

It must not be used from within async context