async-std 1.13.1

Deprecated in favor of `smol` - Async version of the Rust standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Spawns a task that says hello.

use async_std::task;

async fn say_hi() {
    println!("Hello, world!");
}

fn main() {
    task::block_on(say_hi())
}