macro_rules! join {
(, $e:expr) => { ... };
(, $e:expr, $($tail:expr),+) => { ... };
($($e:expr),+) => { ... };
}Expand description
A wrapper around rayon::join that accepts more than 2 and up to 8 closures to be run in parallel.
ยงExamples
use rayon_join_macro::ConsTuple;
let (a, b, c) = join!(
|| (1..=100).count(),
|| (101..=200).count(),
|| (201..=300).count()
);
assert_eq!(a + b + c, 300);