| Crates.io | rayon-join |
| lib.rs | rayon-join |
| version | 1.11.0 |
| created_at | 2025-09-08 19:14:21.660759+00 |
| updated_at | 2025-09-09 13:36:36.444443+00 |
| description | Simple macro to call join from rayon with more than 2 arguments. |
| homepage | |
| repository | https://github.com/dawae54/rayon-join |
| max_upload_size | |
| id | 1829755 |
| size | 6,178 |
Simple macro to call join from rayon with more than 2 arguments.
cargo add rayon-join
You can pass any number of closures:
rayon_join::join!(|| { /* task 1 */ }, || { /* task 2 */ }, || { /* task 3 */ });
You can also pass functions:
fn task1() { /* ... */ }
fn task2() { /* ... */ }
fn task3() { /* ... */ }
rayon_join::join!(task1, task2, task3);
If you need to pass arguments to the functions, use a closure:
fn task_with_arg(x: i32) { /* ... */ }
rayon_join::join!(|| task_with_arg(42), || task_with_arg(7));