PageRenderTime 27ms CodeModel.GetById 17ms app.highlight 2ms RepoModel.GetById 5ms app.codeStats 0ms

/src/test/run-pass/yield2.rs

http://github.com/jruderman/rust
Rust | 7 lines | 5 code | 1 blank | 1 comment | 1 complexity | 6acd14826a510a5b31facd1b876bf1cd MD5 | raw file
1// -*- rust -*-
2use std;
3
4fn main() {
5    let mut i: int = 0;
6    while i < 100 { i = i + 1; log(error, i); task::yield(); }
7}