| Crates.io | limited-join |
| lib.rs | limited-join |
| version | 0.1.0 |
| created_at | 2022-07-20 00:08:00.650527+00 |
| updated_at | 2022-07-20 00:08:00.650527+00 |
| description | A zero-dependency crate providing a join future with limited concurrency |
| homepage | https://github.com/zebp/limited-join |
| repository | https://github.com/zebp/limited-join |
| max_upload_size | |
| id | 628588 |
| size | 10,833 |
A zero-dependency crate providing a join future with limited concurrency.
// Pretend we have a ton of files we want to download, but don't want to overwhelm the server.
let futures = files_to_download.into_iter().map(download::download_file);
// Let's limit the number of concurrent downloads to 4, and wait for all the files to download.
limited_join::join(futures, 4).await;