Async rust is about concurrency

https://kobzol.github.io/rust/2025/01/15/async-rust-is-about-concurrency.html

This article very much conveys what I think.

22 points · 2 comments · view on lemmy.world

2 Comments

farcaller@fstab.sh · 4 pts · 1y

What I find slightly dishonest is bits like

This way of using select in a loop could potentially cause issues regarding cancellation of futures (although in this case it’s fine)

The select example is pretty straightforward and comparable to such in other languages, even to Go's switching on channels. But rust hides an extra bit of complexity with the cancellation concerns that people don’t want to talk about unless absolutely necessary, and it is necessary in so many cases!

syklemil@discuss.tchncs.de · 3 pts · 1y

There also are some stories from js devs about how async/await reduced the spaghetti factor of their code a lot. So yeah, similar stories all around I think, even though async/await obviously isn't a magical thing with no downsides