Function gain::task::block_on[][src]

pub fn block_on<F, T>(future: F) -> T where
    F: Future<Output = T>, 
Expand description

Spawn a task and block the program on its result.