Skip to content

A crate for easily cloneable streams

License

Notifications You must be signed in to change notification settings

marieell/shared-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.