async return when array of promises finished code example Example: await array of promises await Promise.all(arrayOfPromises)