Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I think it's nice to have both options. I prefer the functional style of chaining promises for the most part, but there are definitely a few times when await is easier to use IMO (awaiting inside of a loop, for example).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: