macro_rules! adapt_all {
($neuron:expr, $($ganglion:expr),+ $(,)?) => { ... };
}Expand description
Macro to adapt a single neuron to multiple heterogeneous ganglia at once.
ยงExamples
let ns = Arc::new(NamespaceImpl { delimiter: ".", parts: vec!["test"] });
let neuron = Arc::new(NeuronImpl::<Dummy, Dummy>::new(ns));
let g1 = Arc::new(Mutex::new(GanglionInprocess::new()));
let g2 = Arc::new(Mutex::new(GanglionInprocess::new()));
adapt_all!(neuron, g1, g2).await.unwrap();