Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
threads-sendsync
/
yield2.rs
blob: 2c24df44af2497c94cec538e0eba5d31eca3fa3f [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
use
std
::
thread
;
pub
fn
main
()
{
let
mut
i
:
isize
=
0
;
while
i
<
100
{
i
=
i
+
1
;
println
!(
"{}"
,
i
);
thread
::
yield_now
();
}
}