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

Funny fact: code in a second snippet (awaiting on promises invoked before) can result in node throwing `uncaught promise rejections` errors.

More info: https://dev.to/gajus/handling-unhandled-promise-rejections-i...



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

Search: