IAsyncEnumerable
IAsyncEnumerable<T>
was introduced as part of asynchronous streams in C# 8, which allows to retrieve and generate elements asynchronously. You can consume an async stream using an await foreach
loop in the same way as you consume any sequence using a foreach
loop