Macro mpstthree::close_mpst_cancel
source · macro_rules! close_mpst_cancel { ($func_name:ident, $meshedchannels_name:ident, $n_sessions:literal) => { ... }; }
Available on crate feature
macros_multiple
only.Expand description
Create the close function to be used with more than 3 participants. It is used for checking the send sides upon closing.
§Arguments
- The name of the new close function
- The name of the MeshedChannels type that will be used
- The number of participants (all together)
§Example
use mpstthree::{close_mpst_cancel, create_meshedchannels};
create_meshedchannels!(MeshedChannels, 3);
close_mpst_cancel!(close_mpst_multi, MeshedChannels, 3);
This macro is available only if MultiCrusty is built with
the "macros_multiple"
feature.