| Crates.io | loop |
| lib.rs | loop |
| version | 0.5.2 |
| created_at | 2024-02-20 14:16:00.19336+00 |
| updated_at | 2024-12-28 10:27:27.376815+00 |
| 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 | 11,331 |
The package allows for processing iterators in parallel.
Synchronously:
use r#loop::parallelize;
let double = |value| 2 * value;
let _ = parallelize(0..10, double, None).collect::<Vec<_>>();
Asynchronously:
use futures::stream::StreamExt;
use r#loop::asynchronous::parallelize;
let double = |value| async move { 2 * value };
let _ = parallelize(0..10, double, None).collect::<Vec<_>>().await;
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.