#stream #extension #utilities #async #iter

stream-utils

Additional stream combinators

2 unstable releases

0.2.0 Jul 28, 2023
0.1.0 Jul 26, 2023

#1080 in Asynchronous

Download history 29/week @ 2023-12-11 94/week @ 2023-12-18 36/week @ 2024-01-08 39/week @ 2024-01-15 80/week @ 2024-01-22 68/week @ 2024-01-29 90/week @ 2024-02-05 76/week @ 2024-02-12 152/week @ 2024-02-19 165/week @ 2024-02-26 72/week @ 2024-03-04 64/week @ 2024-03-11 37/week @ 2024-03-18 128/week @ 2024-03-25

302 downloads per month

MIT/Apache

11KB
185 lines

Stream-Utils

build_status crates.io unsafe forbidden

Additional stream adaptors.

Please read the API documentation here.

Install

Run the following Cargo command in your project directory:

cargo add stream-utils

Or add the following line to your Cargo.toml:

stream-utils = "0.1.0"

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.


lib.rs:

Extra Stream adaptors and functions.

To Extend Stream with methods in this crate, import the StreamUtils trait:

use stream_utils::StreamUtils;

Now, new methods like copied_multi_stream are available on all streams.

use futures_util::stream; // or futures::stream;
use stream_utils::StreamUtils;

let stream = stream::iter(0..3);
let streams = stream.copied_multi_stream(4);

Dependencies

~720KB
~14K SLoC