private async downloadAndParseData(): Promise<void>
{
let data = await this.getData();
let dataItemList: Item[] = [];
for (const dataItem of data)
{
const tempItem: Item =
{
...
};
dataItemList.push(tempItem);
}
for (const item of dataItemList)
{
...
}
}
In which of these loops, do I have to use for await of?
I think I have to use the await in none of them but I'm not sure...