Macro esp32s2_hal::prelude::nb::block
macro_rules! block { ($e:expr) => { ... }; }
Expand description
Turns the non-blocking expression $e into a blocking operation.
This is accomplished by continuously calling the expression $e until it no
longer returns Error::WouldBlock
Input
An expression $e that evaluates to nb::Result<T, E>
Output
Ok(t)if$eevaluates toOk(t)Err(e)if$eevaluates toErr(nb::Error::Other(e))