Function thread_waker::block_on
source · pub fn block_on<F: Future>(fut: F) -> F::OutputExpand description
Await for future forever via thread token
Note that this is only viable for futures that doesn’t require IO runtime
pub fn block_on<F: Future>(fut: F) -> F::OutputAwait for future forever via thread token
Note that this is only viable for futures that doesn’t require IO runtime