Sign in
fuchsia
/
fuchsia
/
refs/heads/releases/dogfood
/
.
/
third_party
/
rust_crates
/
vendor
/
async-std
/
examples
/
hello-world.rs
blob: 8d663339fa831608b8fa7388831abba23ebed155 [
file
] [
log
] [
blame
] [
edit
]
//! Spawns a task that says hello.
use
async_std
::
task
;
async
fn
say_hi
()
{
println
!(
"Hello, world!"
);
}
fn
main
()
{
task
::
block_on
(
say_hi
())
}