limited-join

Docs.rs Crates.io Unlicense

A zero-dependency crate providing a join future with limited concurrency.

Example

```rust // Pretend we have a ton of files we want to download, but don't want to overwhelm the server. let futures = filestodownload.intoiter().map(download::downloadfile);

// Let's limit the number of concurrent downloads to 4, and wait for all the files to download. limited_join::join(futures, 4).await; ```