await foreach (var item in GetDataAsync())
{
Console.WriteLine(item);
}
public async IAsyncEnumerable GetDataAsync()
{
yield return await GetData(1);
yield return await GetData(2);
...
}
await foreach (var item in GetDataAsync())
{
Console.WriteLine(item);
}
public async IAsyncEnumerable GetDataAsync()
{
yield return await GetData(1);
yield return await GetData(2);
...
}
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)