shared-iter

Crates.ioshared-iter
lib.rsshared-iter
version0.2.0
sourcesrc
created_at2019-10-02 14:59:03.086403
updated_at2020-05-19 08:45:06.252707
descriptionSharing
homepage
repositoryhttps://github.com/lperlaki/shared-iter-rs
max_upload_size
id169393
size5,266
Liam Perlaki (lperlaki)

documentation

README

Shared Iter

Clone an Iterator and shared it accros threads

use shared_iter::ShareIterator;

let iter1 = (1..20).share();
let iter2 = iter1.clone();

assert_eq!(iter1.take(10).collect::<Vec<_>>(), iter2.take(10).collect::<Vec<_>>());
Commit count: 4

cargo fmt