19 lines
305 B
Rust
19 lines
305 B
Rust
|
// -*- rust -*-
|
||
|
|
||
|
fn x(str s, int n) {
|
||
|
log s;
|
||
|
log n;
|
||
|
}
|
||
|
|
||
|
fn main() {
|
||
|
spawn x("hello from first spawned fn", 65);
|
||
|
spawn x("hello from second spawned fn", 66);
|
||
|
spawn x("hello from third spawned fn", 67);
|
||
|
let int i = 30;
|
||
|
while (i > 0) {
|
||
|
i = i - 1;
|
||
|
log "parent sleeping";
|
||
|
yield;
|
||
|
}
|
||
|
}
|