News for hackers. Stuff that matters.
Re:How to think about `async`/`await` in Rust by qwertox on Wednesday July 05, 2023 @03:47AM (#36597070)
For me async/await was a godsend. I've had so bad experiences with multithreading in C++, where I ended up in a Semaphore/Mutex hell in a big project, that async/await is a really welcome compromise between using idle CPU resources and just not doing multiple things at once.

Then there's `#[tokio::main(flavor = "multi_thread", worker_threads = 2)]` which actually lets you use multithreading with async/await which is just a nice feature to have, given that Python can't do this due to the GIL. But asyncio in Python is also so great.

There are no comments on this comment yet.