Rustaceans at the border
Rustaceans at the border
Posted Apr 15, 2022 7:31 UTC (Fri) by tlamp (subscriber, #108540)Parent article: Rustaceans at the border
> "Async Rust" knows nothing about kernel threads or how context switching is done in the kernel, for example.
Hmm, but it doesn't know that stuff for the user space either. Async is basically sugaring to wrap handling a pinned future type, each runtime, and future type (with a poll funciton, and a pending and ready state), can map that to their actual, underlying execution model of choice. I mean, that's why the Rust ecosystem can have multiple async runtime libaries like tokio, async-std or smol.
https://rust-lang.github.io/async-book/02_execution/01_chapter.html
