array with async promises wait for all to finish code example Example: await array of promises await Promise.all(arrayOfPromises)