The support forAsync Streams was one of the most exciting features that came out with .NET Core 3.0 and C# 8. This is possible with the use of IAsyncEnumerable with the yield operator. In this article, we are going to explore how to take advantage of this new feature to improve our code.
For ease of navigation, we have organized the article into the following sections:
- Introduction to IAsyncEnumerable<T>
- The Limitations of async IEnumerable
- Introducing yield
- Solving the Problem Using IAsyncEnumerable with yield
- Consuming IAsyncEnumerable with await foreach
- IAsyncEnumerable<T> in ASP.NET
- IAsyncEnumerable<T> with Databases