Anyone have an example of nested promises? I have ...
# suitescript
a
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
DM'd you 😉
💯 1
e
For everyone else, Promise.all() will run after multiple promises resolve
👏 1
👍 2
b
typically you need to properly implement a catch on your inner promise when using Promise.all, it rejects on the first promise to reject
alternatively pick your favorite Promise.allSettled polyfill