Iterating with Async Enumerables | | Exploring C# and DOTNET | Rahul Nath
Вставка
- Опубліковано 11 вер 2024
- Enumeration of collections has been the bread-and-butter of many programs.
But what if we could enhance this familiar concept with asynchronous capabilities? That's what .NET AsyncEnumerables does.
In this video, we'll explore how C# combines 'yield return' with 'async' and 'await' to create efficient asynchronous data streams and how 'await foreach' lets us effortlessly consume them.
For the demo, I will show you a simple console application that looks through rating files stored in an Amazon S3 bucket to find the first n number of x-star ratings for a given product. We will see some of the challenges with standard approaches and how to use AsyncEnumerable to help us make this more efficient.
Thanks to AWS For sponsoring this video!
Come say hi! ✋
🎙️Uses - www.rahulpnath...
🌍Blog - www.rahulpnath...
✉ Subscribe to my Newsletter - www.rahulpnath...
🐦Twitter - / rahulpnath
📸Instagram - / rahulpnath
#dotnet #csharp
Great contente! I would like to see others performance optimizations.
Thank you Rodrigo! Sure yes will do one
Hi Thank you so much for the content, great delivery, I have question is "await foreach" is going to be the same "SelectAwait" if you also build up / adding to the collection only if the conditions are met, unless I am missing something. All the best and once again great videos I have always enjoy your style
Thank you Ljudmil and glad you liked the content. Yes you are correct, that was an oversight from my side, thinking about it as the same as a Select - I will do a follow up video to cover the topic with more details. Thank you for pointing it out here! 👍
Bro why you not making videos in hindi
Can u do a detailed video about aysnc linq
Thank you for the suggestion Naveen. What would you like to see in that video, anything specific