Hacker News new | ask | show | jobs
by Khao 4236 days ago
async/await is there to reduce the massive amount of boilerplate code you need to write when doing async. Of course there will be corner case bugs or weird behaviors sometimes, but that doesn't mean it's all bad. If async/await works for most cases, then it's something that's beneficial for a software developer like me.
1 comments

I agree, mostly. I really like async/await but I didn't dare touch it until I read the articles that explain what kind of state machine the compiler constructs and how the synchronization context works. I doubt the average developer would go through that trouble.

I think it's great if you follow standard design patterns but it could be a real source of problems for inexperienced programmers once a race condition emerges.