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

> With normal callback style error handling, you have to put "if (err) return cb(err)" after each async call. It's crazy.

Or use a sane async library. As far as I can tell, something like https://github.com/caolan/async gives you a strict superset of Promise features, unless you're for some reason tied to how code with promises looks.



Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: