async-std 1.6.2

Async version of the Rust standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Prints the runtime's execution log on the standard output.

use async_std::task;

fn main() {
    femme::start(log::LevelFilter::Trace).unwrap();

    task::block_on(async {
        let handle = task::spawn(async {
            log::info!("Hello world!");
        });

        handle.await;
    })
}