Comment on Async Rust Isn't Bad: You AreparentComments−eternityforest2yThe only thing I find confusing about async is that you have to migrate legacy code, and I don't really enjoy rewrites.Otherwise, it looks basically the exact same as synchronous code, except background stuff only happens while you're await-ing something.If there's a failure, the await raises an error, just like a sync function call would.It was horrendous before await, JS nested callbacks were a nightmare, but all that is basically gone now.
Comments
The only thing I find confusing about async is that you have to migrate legacy code, and I don't really enjoy rewrites.
Otherwise, it looks basically the exact same as synchronous code, except background stuff only happens while you're await-ing something.
If there's a failure, the await raises an error, just like a sync function call would.
It was horrendous before await, JS nested callbacks were a nightmare, but all that is basically gone now.