Skip to content

Comment on Async Rust Isn't Bad: You Areparent

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.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.