Skip to content

An utility crate for scheduling Rust streams/futures in parallel on Tokio according to structured parallelism best-practices

Notifications You must be signed in to change notification settings

modal-labs/tokio-par-util

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

An utility crate for scheduling Rust streams/futures in parallel on Tokio according to structured parallelism best-practices

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages