IAsyncEnumerable, My Favorite C# 8 Feature That No One Is Using

preview_player
Показать описание
Today we'll take a look at IAsyncEnumerable, one of my favorites we got in C# 8!

Connect with me on 'em socials:

#dotnet #csharp #amantinband
Рекомендации по теме
Комментарии
Автор

System.Linq.Async? I learned something new 😁

MilanJovanovicTech
Автор

Great explanation. For F# programmers, consider using the 'TaskSeq' Nuget Lib, which brings 'await foreach' to F# using Computation Expressions like 'task {...}' and 'seq{...}'.

Misteribel
Автор

Nicely done! I love the way you explain things. You're a natural teacher!

charlesstacyharrisiii
Автор

Im lucky enough to use it on a daily basis. Extremely useful when working with sensors, networking, or any kind of real time streaming where the data being returned can potentially be infinite. Great video 👍 keep it up!

jamesmussett
Автор

Amichai, I'm so glad I found your channel. You're the GOAT

Linkario
Автор

Hey, first time viewer of the channel. Thumbs up for the short & informative video, liked it very much. Could you please share what kind of skin are you using for your terminal? It seems very useful.

egtdig
Автор

Thank u for the video. I want to suggest another topic related to DDD/Design/Architecture. Could u post a video about anemic code/design? Cons and pros. Thank u.

alexlo
Автор

The biggest surprise to me is how easy it is to implement lazy code using yields eveywhere!

SilasPeters
Автор

I agree with your opinion on why it wasn't more widely accepted. I used it quite a bit on a project and we ended up needing to write helper methods just to work with them when those helpers could have just been built in. I am hoping someday Microsoft gives it another pass to consolidate it. It is very nice when calling paged APIs though.

Osirus
Автор

How do you get IAsyncEnumerable to work in an api contoller or minimal api? No matter what I try it still buffers the responses and sends them all at one time. Thanks

mlhtest
Автор

Correct. Even in the XStreamingElement you cannot use this…😢

arnonoordover
Автор

What about EF Core though? How will it interact with it? One SQL request per element of the collection? Or will it fetch all the collection like with a standard List?

deus_nsf
Автор

lol by the 3min mark I already tuned out. KISS

auronedgevicks
Автор

I just used it today and was wondering about cancellationtoken usage. And just saw your video!Great timing! 🙂
I see you have used break keyword without cancellation token. I couldn't find such concise explanation anywhere. Thank you!

But can you explain use of cancellation token with iasyncenumerable?

nayanchoudhary
Автор

Random question, but what do you use to draw the boxes and arrows on your screen ? In today’s remote working environment I’m really looking for something this

MyFuzzyAfterlife
Автор

Would you use it as a return type in web api controllers?

alonmore
Автор

Thanks ! great video, but the sound quality is not great.

OmriKipi
Автор

This is awesome and I think will solve a pretty nasty bit of code I haven't been able to simplify. One question: Isn't printing the statement "Received 10 numbers" a bit misleading? The Console.WriteLine() only gets called once, but if the NumbersClient only returns a page of 10 (with the range of 0-9), then 11 would only be in our final results if the NumbersClient returned a second page (so actually 20 numbers). I'm not too familiar with the yield keyword, so that part kind of confused me.

justinian.erdmier
Автор

Do you plan to get back to the DDD / Clean Arch series? :)

pilotboba
Автор

is it possible to get the source code for this please?

thanzeeljalaldeen