Trait timely::dataflow::operators::core::concat::Concat

source ·
pub trait Concat<G: Scope, C: Container> {
    // Required method
    fn concat(&self, _: &StreamCore<G, C>) -> StreamCore<G, C>;
}
Expand description

Merge the contents of two streams.

Required Methods§

source

fn concat(&self, _: &StreamCore<G, C>) -> StreamCore<G, C>

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));
});

Implementors§

source§

impl<G: Scope, C: Container + Data> Concat<G, C> for StreamCore<G, C>