zephyr

Macro event_loop

Source
macro_rules! event_loop {
    ($events:expr, $period:expr,
     Some($eventvar:ident) => $event_body:block,
     None => $periodic_body: block $(,)?) => { ... };
}
Expand description

Wait loop, as a macro.

This is the event loop above, implemented as a macro, which becomes more useful as the async closures aren’t needed.