adriaandotcom / blog.adriaan.io

The tech blog of Adriaan
https://blog.adriaan.io
Other
10 stars 14 forks source link

make-async-await-work-in-promises #25

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Make Async Await Work In Promises · Adriaan's blog

https://blog.adriaan.io/make-async-await-work-in-promises.html

tony-ist commented 2 years ago

Hi! What if I need to implement for-await loop inside new Promise? How can I approach this? Making the promise constructor async is antipattern