Skip to content

Instantly share code, notes, and snippets.

@chikoski
Created February 4, 2014 09:39
Show Gist options
  • Select an option

  • Save chikoski/8800684 to your computer and use it in GitHub Desktop.

Select an option

Save chikoski/8800684 to your computer and use it in GitHub Desktop.
fn main(){
let mut count = 0;
while count < 10 {
let c = count;
let p = proc(){
println!("Hello World from No. {}", c);
};
spawn(p);
count = count + 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment