blob: a6610d57ff0ec4954e286dca88c2a7e082fc32a7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// -*- rust -*-
impure fn main() {
let port[int] p = port();
spawn child(chan(p));
let int y;
y <- p;
log "received";
log y;
check (y == 10);
}
impure fn child(chan[int] c) {
c <| 10;
}
|