async works!

This commit is contained in:
2025-02-23 19:27:13 +00:00
parent efe3034ad0
commit 7ff33659fe
9 changed files with 73 additions and 91 deletions
+4 -3
View File
@@ -4,9 +4,10 @@
extern crate alloc;
use libk::{
io,
io::{self, keyboard},
prelude::*,
scheduling::task::{Executor, Task},
// scheduling::task::{Executor, Task},
};
#[unsafe(no_mangle)]
@@ -46,8 +47,8 @@ extern "C" fn kmain() -> ! {
);
let mut executor = Executor::new();
executor.spawn(Task::new(io::keyboard::print_keypresses()));
executor.try_run();
executor.spawn(Task::new(keyboard::print_keypresses()));
executor.run();
loop {}
}