// -*- rust -*- use std; import std::task; fn main() { let i = 10; while (i > 0) { task::_spawn(bind child(i)); i = i - 1; } log "main thread exiting"; } fn child(x : int) { log x; }