shared_stream

Crates.ioshared_stream
lib.rsshared_stream
version0.2.1
sourcesrc
created_at2021-03-02 23:36:02.113375
updated_at2022-02-04 15:29:20.025469
descriptionA crate for easily cloneable streams
homepage
repositoryhttps://github.com/marieell/shared-stream
max_upload_size
id362902
size46,484
(marieell)

documentation

README

shared_stream is a crate for easily cloneable streams.

Usage

Add this to your Cargo.toml:

[dependencies]
shared_stream = "0.2"

Now, you can use shared_stream:

use shared_stream::Share;

let shared = stream::iter(1..=3).shared();

License

This crate is published under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Commit count: 15

cargo fmt