extern crate timely; extern crate timely_communication; use timely::dataflow::operators::*; use timely::Config; // use timely::progress::timestamp::RootTimestamp; fn main() { timely::execute(Config::thread(), |worker| { let (mut input, mut cap) = worker.dataflow::(|scope| { let (input, stream) = scope.new_unordered_input(); stream.inspect_batch(|t, x| println!("{:?} -> {:?}", t, x)); input }); for round in 0..10 { input.session(cap.clone()).give(round); cap = cap.delayed(&(round + 1)); worker.step(); } }).unwrap(); }