2 ms·
I stand corrected. Indeed, this program worked just fine: fn foo() { println("hai") } fn main() { let xs = ~[1,2,3]; for _ i
by catnaroek 13y ago
I stand corrected. Indeed, this program worked just fine:
fn foo() {
println("hai")
}
fn main() {
let xs = ~[1,2,3];
for _ in xs.iter() {
std::task::spawn(foo)
}
}