tokio-par-util

Crates.iotokio-par-util
lib.rstokio-par-util
version0.2.0
created_at2025-02-14 17:08:43.87313+00
updated_at2025-02-14 18:32:47.785986+00
descriptionUtilities for running computations in parallel on top of Tokio
homepage
repositoryhttps://github.com/modal-labs/tokio-par-util
max_upload_size
id1555793
size83,502
David Flemström (dflemstr)

documentation

README

tokio-par-util

Utilities for running computations in parallel on top of Tokio

This library adds utility methods and stream transformers to Streams and TryStreams, to make it easier to run many futures in parallel while adhering to structured parallelism best-practices. Each stream transformer propagates panics and cancellation correctly, and ensures that tasks aren't leaked, that the program waits for Drop impls to run on other tasks before continuing execution, etc.

Usage

To use this library, simply call parallel_* methods on Streams or TryStreams by importing the extension traits, StreamParExt or TryStreamParExt.

Consult the latest API docs for more information.

Commit count: 19

cargo fmt