hello_world/
hello_world.rs

1use avila_async::{Runtime, sleep};
2use std::time::Duration;
3
4fn main() {
5    let rt = Runtime::new();
6
7    rt.block_on(async {
8        println!("Hello from Avila Async!");
9
10        sleep(Duration::from_secs(1)).await;
11
12        println!("One second later...");
13    });
14}