mondayio 0.2.4

A thread per core runtime based on iouring.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#[cfg(feature = "signal")]
#[monoio::test(driver = "uring")]
async fn test_ctrlc_uring() {
    use libc::{getpid, kill, SIGINT};
    use monoio::utils::CtrlC;

    let c = CtrlC::new().unwrap();
    std::thread::spawn(|| unsafe {
        std::thread::sleep(std::time::Duration::from_millis(500));
        kill(getpid(), SIGINT);
    });

    c.await;
}