2010-11-02 13:11:58 -05:00
|
|
|
impure fn start(chan[chan[str]] c) {
|
2010-08-11 17:05:33 -05:00
|
|
|
let port[str] p = port();
|
|
|
|
c <| chan(p);
|
|
|
|
}
|
|
|
|
|
2010-11-02 13:11:58 -05:00
|
|
|
impure fn main() {
|
2010-08-11 17:05:33 -05:00
|
|
|
let port[chan[str]] p = port();
|
|
|
|
auto child = spawn "child" start(chan(p));
|
|
|
|
auto c <- p;
|
|
|
|
}
|