pub trait Concat<G: Scope, D: Container> {
// Required method
fn concat(&self, _: &StreamCore<G, D>) -> StreamCore<G, D>;
}
Expand description
Merge the contents of two streams.
Required Methods§
sourcefn concat(&self, _: &StreamCore<G, D>) -> StreamCore<G, D>
fn concat(&self, _: &StreamCore<G, D>) -> StreamCore<G, D>
Merge the contents of two streams.
§Examples
use timely::dataflow::operators::{ToStream, Concat, Inspect};
timely::example(|scope| {
let stream = (0..10).to_stream(scope);
stream.concat(&stream)
.inspect(|x| println!("seen: {:?}", x));
});