1 unstable release

0.1.0 Feb 20, 2024

#1893 in Algorithms

Download history 132/week @ 2024-07-15 98/week @ 2024-07-29 23/week @ 2024-08-05 3/week @ 2024-08-19 23/week @ 2024-08-26 16/week @ 2024-09-23 59/week @ 2024-10-07 156/week @ 2024-10-14 15/week @ 2024-10-21 6/week @ 2024-10-28

236 downloads per month
Used in 2 crates (via folder)

Apache-2.0/MIT

5KB
63 lines

Loop Package Documentation Build

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();

No runtime deps