esp_idf_hal::task

Function block_on

Source
pub fn block_on<F>(fut: F) -> F::Output
where F: Future,
Expand description

Executes the supplied future on the current thread, thus blocking it until the future becomes ready.