Function exec_future

Source
pub fn exec_future<F: Future>(future: F) -> F::Output
Expand description

Convenience function to run a future until it returns a value

This is useful in synchronous contexts where the .await syntax normally can’t be used