Sign in
fuchsia
/
third_party
/
rust
/
ba2853b6d3a197cdbec5543be2592ca430b49af6
/
.
/
src
/
test
/
run-pass
/
yield2.rs
blob: c4ccd2d1475580c1931f0713d19ed0551cc805b8 [
file
] [
log
] [
blame
]
use
std
::
thread
;
pub
fn
main
()
{
let
mut
i
:
isize
=
0
;
while
i
<
100
{
i
=
i
+
1
;
println
!(
"{}"
,
i
);
thread
::
yield_now
();
}
}