const promises:Promise<{}>[] = [];
myWhatever.forEach(
item => {
const promise = new Promise<{}>(
(resolve, reject) => {
// Do something which ends up with resolve getting called
// at some point
promises.push(promise);
Promise.all(promises)
.then(
() => {
// Perform your post render tasks here
);
const promises = myWhatever.map(
item =>
new Promise<{}>(
(resolve, reject) => {
// Do something which ends up with resolve getting called
// at some point