Macro vex_rt::select_merge

source ·
macro_rules! select_merge {
    { $( $var:pat = $event:expr $(; $sub:pat = $dep:expr)* => $body:expr ),+ $(,)? } => { ... };
}
Expand description

Generates a future event (i.e. one which implements crate::rtos::Selectable) from a similar recipe as the select! macro, combining the behaviour of select_map and select_any!.

There is one important difference to note between this macro and select!: since this macro needs to generate an object containing the event processing recipe, the body expressions are placed inside lambdas, and therefore contextual expressions such as break, continue and return are not valid.