News for hackers. Stuff that matters.
Re:Rust async/await hits stable tomorrow by Zekio on Wednesday November 06, 2019 @02:18PM (#21466000)
The biggest benefit I see with Async code is that a thread can go back to the thread pool while you as an example wait for a response from a HTTP request to an external service
Re:Rust async/await hits stable tomorrow by mushufasa on Wednesday November 06, 2019 @02:21PM (#21466043)
Yes that's the definitive use case. Usually you have to explicitly describe the wait, so you need to write the code a certain way. I think OP was referring to the fact that threading / forking processes is usually just as effective, and you don't have to rewrite all your code from the ground up.