6 let po = comm::port::<int>();
8 // Spawn 10 tasks each sending us back one int.
12 task::spawn((i, comm::chan(po)), child);
16 // Spawned tasks are likely killed before they get a chance to send
17 // anything back, so we deadlock here.
23 value = comm::recv(po);
27 #debug("main thread exiting");
30 fn child(&&args: (int, comm::chan<int>)) {