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

"await" will not help you if you do not understand the asynchronous nature. I think it's a unnecessary abstraction. And it's much easier to follow callbacks if you abstract them like this:

  socket.on("data", echo); // calls the echo function when data arrives


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

Search: