Crates.io | loop |
lib.rs | loop |
version | 0.1.0 |
source | src |
created_at | 2024-02-20 14:16:00.19336 |
updated_at | 2024-02-20 14:16:00.19336 |
description | The package allows for processing iterators in parallel. |
homepage | https://github.com/stainless-steel/loop |
repository | https://github.com/stainless-steel/loop |
max_upload_size | |
id | 1146433 |
size | 7,605 |
The package allows for processing iterators in parallel.
let map = |item: &_, context| std::io::Result::Ok(*item * context);
let (items, results): (Vec<_>, Vec<_>) = r#loop::parallelize(0..10, map, 2, None).unzip();
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.