6 fn start(c: comm::chan<int>, start: int, number_of_messages: int) {
8 while i < number_of_messages { send(c, start + i); i += 1; }
12 #debug("Check that we don't deadlock.");
13 let p = comm::port::<int>();
14 let ch = comm::chan(p);
15 let a = task::spawn_joinable {|| start(ch, 0, 10); };
17 #debug("Joined task");