Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

C# 8 introduced async generators with IAsyncEnumerable, so you can combine yield and await in C# as well. Those async generators are consumed using the ”await foreach” statement (which offcourse can be used nested from within another async generator).

https://learn.microsoft.com/en-us/archive/msdn-magazine/2019...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: