top | item 45604424

(no title)

aliceryhl | 4 months ago

It's trivial to implement an async runtime in the kernel. The kernel's workqueue is already essentially a runtime.

discuss

order

jgilias|4 months ago

I was about to take offence at the use of “trivial” in this context. But then I noticed your handle, lol. You have the license to say that, thanks for your contributions!

3836293648|4 months ago

Won't that be an eager runtime though? Breaking Rust's assumption that futures do nothing until polled? Unless you don't submit it to the queue until the poll call, I guess

aliceryhl|4 months ago

It won't be different from Tokio. When you pass a future to tokio::spawn, that will also eagerly execute the future right away.