limited-join 0.1.0

A zero-dependency crate providing a join future with limited concurrency
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented2 out of 3 items with examples
  • Size
  • Source code size: 19.17 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.44 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • zebp/limited-join
    3 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zebp

limited-join

Docs.rs Crates.io Unlicense

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

Example

// 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;