catch on a Promise
I am new to Javascript and trying to understand how Promise really works. I understand basics of how chaining works in Promise.
How to wait for all resolved and rejected promises in a loop and then continue processing?
I have a piece of code:
Promise.all immediately jumps to then instead of calling all promises
I’m new to promises and trying to get Promises.all to work in this situation. However, when I try to run the code by calling the processFiles function, it just immediately hits the console.log line in the Promises.all then method. What am I doing wrong?
JS behaviour of parent catch handler of promise
I have the following code which returns a Promise