4 ms·
async / await works only with Promises. As the name util.promisfy indicates, it generates promises. You never need use use async / await.
by flai 9y ago
async / await works only with Promises. As the name util.promisfy indicates, it generates promises.
You never need use use async / await.
- drinchev 9y agoThanks. 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.
- egeozcan 9y agoAsync and await do not make your code work synchronously, they make it look like synchronous.