I guess you need
await Promise.All(...your-list-of-promises);
that way you should have them all
another example, maybe more clear:
await Promise.All([foo.promise(), bar.promise()]);
hth
f
faint-table-42725
03/08/2021, 5:02 PM
Another thing to keep in mind is that
Input<T> = T | Promise<T> | OutputInstance<T>;
faint-table-42725
03/08/2021, 5:02 PM
So if you pass in the promise as an input at any point to a resource, the runtime will ensure the promise is resolved as part of constructing the resource