fio 0.0.0-alpha.1

An io_uring-backed async runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
fn main() {
    fio::block_on(async |io| {
        let a = io.spawn(async move {
            io.sleep(1000).await;
            println!("will resolve: 1");
            1
        });
        let b = io.spawn(async move {
            io.sleep(1000).await;
            println!("will resolve: 2");
            2
        });
        let result = a.await + b.await;
        println!("got: {result}");
    });
}