blob: 9f4e6e1fdd84fea4e2c5adb2e7c779f706dd9b8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// -*- rust -*-
use std;
import task;
fn main() {
let i = 10;
while i > 0 { task::spawn {|| child(i); }; i = i - 1; }
#debug("main thread exiting");
}
fn child(&&x: int) { log(debug, x); }
|