[][src]Function pollster::block_on

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

Block the thread until the future is ready.

Example

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