News for hackers. Stuff that matters.
Re:Rust async/await hits stable tomorrow by gdxhyrd on Wednesday November 06, 2019 @03:25PM (#21466795)
If you are deadlocking, you have a bug. If you hit OOM, you most likely have leaks or went wild with threads or allocations.

Both of those conditions are orthogonal to async/thread pools, so what do you mean?

Re:Rust async/await hits stable tomorrow by lacker on Thursday November 07, 2019 @06:54PM (#21478727)
I mean, if your thread pool has 10 threads available, and your code attempts to run an 11th thread, you can run into a deadlock. Whereas that same code written with async/await can run fine.

You can call that "going wild with threads" but in an async/await model it is often just fine to use that many async calls.