Anyone have an example of nested promises?
I have an array with 200 elements which I chunk into 100 elements and another 100 elements, I want to do two promises and only continue after both are done?
n
NElliott
06/07/2023, 1:14 PM
DM'd you 😉
💯 1
e
erictgrubaugh
06/07/2023, 3:06 PM
For everyone else, Promise.all() will run after multiple promises resolve
👏 1
👍 2
b
battk
06/07/2023, 3:27 PM
typically you need to properly implement a catch on your inner promise when using Promise.all, it rejects on the first promise to reject