Skip to content

aethne0/bananasync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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");
        }
    });
}

About

single-thread io_uring based async runtime

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages