Hacker News new | ask | show | jobs
by flai 3309 days ago
async / await works only with Promises. As the name util.promisfy indicates, it generates promises.

You never need use use async / await.

1 comments

Thanks. I actually wrote the comment, because of :

> This enables writing code using async and await at all times, which is what any sane developer would do when writing code for Node.js.

Async and await do not make your code work synchronously, they make it look like synchronous.