| Crates.io | tokio-par-util |
| lib.rs | tokio-par-util |
| version | 0.2.0 |
| created_at | 2025-02-14 17:08:43.87313+00 |
| updated_at | 2025-02-14 18:32:47.785986+00 |
| description | Utilities for running computations in parallel on top of Tokio |
| homepage | |
| repository | https://github.com/modal-labs/tokio-par-util |
| max_upload_size | |
| id | 1555793 |
| size | 83,502 |
tokio-par-utilUtilities 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.
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.