Skip to content

CodeMazeBlog/async-enumerable-yield-csharp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IAsyncEnumerable with yield in C#

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

About

This repo contains the source code for the "IAsyncEnumerable with yield in C#" article on Code Maze

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages