Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

29 lines (25 sloc) 0.423 kb
use std;
import std::vec;
import std::task;
import std::uint;
import std::str;
fn f(n: uint) {
let i = 0u;
while i < n {
task::join(spawn g());
i += 1u;
}
}
fn g() {}
fn main(args: vec[str]) {
let n = if vec::len(args) < 2u {
10u
} else {
uint::parse_buf(str::bytes(args.(1)), 10u)
};
let i = 0u;
while i < n {
spawn f(n);
i += 1u;
}
}
Jump to Line
Something went wrong with that request. Please try again.