1 unstable release
0.1.0 | Feb 20, 2024 |
---|
#1893 in Algorithms
236 downloads per month
Used in 2 crates
(via folder)
5KB
63 lines
Loop
The package allows for processing iterators in parallel.
Example
let map = |item: &_, context| std::io::Result::Ok(*item * context);
let (items, results): (Vec<_>, Vec<_>) = r#loop::parallelize(0..10, map, 2, None).unzip();
Contribution
Your contribution is highly appreciated. Do not hesitate to open an issue or a pull request. Note that any contribution submitted for inclusion in the project will be licensed according to the terms given in LICENSE.md.
lib.rs
:
Processing iterators in parallel.
Example
let map = |item: &_, context| std::io::Result::Ok(*item * context);
let (items, results): (Vec<_>, Vec<_>) = r#loop::parallelize(0..10, map, 2, None).unzip();