News for hackers. Stuff that matters.
Re:Async-await on stable Rust by bluejekyll on Thursday November 07, 2019 @12:52PM (#21475450)
I'm not sure this is really possible. Given that async programming is cooperative by nature, how do you tell the difference between a blocking IO task, and a really long running loop in a piece of code that is itself blocking others from executing because it's doing too much work?

The blocking IO might be something in Rust that a type could be created for to denote that they are not async, and therefor warn you in some way, but I think that one is easy to detect in testing.

Re:Async-await on stable Rust by phamilton on Thursday November 07, 2019 @12:57PM (#21475496)
> I think that one is easy to detect in testing

I have seen that not detected in testing too many times. With a work stealing execution context the code will still run fine unless under heavy load (which will exhaust the thread pool and lock the application).