1 unstable release

0.1.0 Feb 20, 2024

#961 in Algorithms

Download history 179/week @ 2024-02-16 86/week @ 2024-02-23 77/week @ 2024-03-01 34/week @ 2024-03-08 35/week @ 2024-03-15 21/week @ 2024-03-29 66/week @ 2024-04-05

128 downloads per month
Used in 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