Function pollster::block_on[][src]

pub fn block_on<F: Future>(fut: F) -> F::Output

Block the thread until the future is ready.

Example

let my_fut = async {};
let result = pollster::block_on(my_fut);