pub trait SharedStream<S: Scope, C: Container> {
// Required method
fn shared(&self) -> StreamCore<S, Rc<C>>;
}
Expand description
Convert a stream into a stream of shared containers
Required Methods§
Convert a stream into a stream of shared data
§Examples
use timely::dataflow::operators::{ToStream, Inspect};
use timely::dataflow::operators::rc::SharedStream;
timely::example(|scope| {
(0..10).to_stream(scope)
.shared()
.inspect(|x| println!("seen: {:?}", x));
});