adriaandotcom / blog.adriaan.io

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

Update 2017-07-10-make-async-await-work-in-promises.md #18

Closed Sachin-12 closed 3 years ago

Sachin-12 commented 3 years ago

The Promise executor function should not be async. Though this works, if the executor functions throws an error, the error will be lost and wont cause newly created promise function to reject. This will make it difficult to debug and handle some errors

adriaandotcom commented 3 years ago

I updated the content a bit: https://blog.adriaan.io/make-async-await-work-in-promises.html