devela::allFunction future_block
Source pub fn future_block<F: Future>(future: F) -> F::Output
Available on crate feature std
only.
Expand description
Blocks the thread until the future
is ready.
See also the ExtFuture
trait.
ยงExamples
let future = async {};
let result = devela::work::future_block(future);