Re:C++ Coroutines Do Not Spark Joy
by tobbebex on Friday April 05, 2024 @03:26AM
(#39939600)
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...