ringcore 0.1.0

A minimal async runtime built on Linux io_uring, designed to expose how Rust futures map to kernel I/O.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use tokio::time::{sleep, Duration, Instant};

#[tokio::main]
async fn main() {
    let start = Instant::now();
    println!("Tokio Timer started: sleeping for 1 second...");
    sleep(Duration::from_secs(1)).await;
    println!("1 second passed at {:?}", start.elapsed());
    
    println!("Sleeping for 500ms...");
    sleep(Duration::from_millis(500)).await;
    println!("500ms passed. Done at {:?}", start.elapsed());
}