Function run
Source pub fn run<F: Future + 'static>(future: F) -> F::Output
Expand description
Runs future to completion, along with any tasks it spawns, and
returns its output. Tasks still running when it finishes are dropped.
ยงPanics
If called inside another run, or if every task waits on something that
can never happen.