zlacker

[parent] [thread] 1 comments
1. ameliu+(OP)[view] [source] 2024-01-23 16:56:26
What good are "runtime policies" if you're in a single thread that you can't interrupt (which is what async is)?
replies(1): >>the_mi+Ek1
2. the_mi+Ek1[view] [source] 2024-01-23 22:54:08
>>ameliu+(OP)
Async is not really that in Rust. While it's true that a singular poll cannot be preempted, things like task::spawn schedule that on a multi threaded executor. So a lot of cases behave just like threads except you await them from somewhere else.
[go to top]