Skip to main content

run

Function run 

Source
pub fn run<F: Future + 'static>(future: F) -> F::Output
where F::Output: 'static,
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.