single thread io_uring based runtime
uses io-uring - tokio's iouring wrapper/binding crate. This doesn't have any async functionality, just wrappers around io_uring and/or liburing syscalls/functions.
use std::{time::Duration};
use banan::{time, Runtime};
fn main() {
Runtime::block_on(async {
Runtime::spawn(async {
loop {
time::snooze(Duration::from_millis(333)).await;
println!("333");
}
});
loop {
time::snooze(Duration::from_millis(500)).await;
println!("500");
}
});
}