[][src]Macro join::join_spawn

macro_rules! join_spawn {
    #[proc_macro_hack(support_nested)] => { ... };
}

Use to spawn ::std::thread per each step of each branch. It produces tuple of values or single value in case of 1 branch.

Example:

extern crate join;

use join::join_spawn;

let filtered: Vec<_> = join_spawn! { vec![1,2,3].into_iter() ?> |v| v % 2 == 0 =>[] };
assert_eq!(filtered, vec![2]);