Generator-Function in C# - What does yield do?
Since the introduction of C# 2.0 we have the yield
keyword with in combination with the IEnumerable<T>
type works as a generator function. We can return elements one by one.
But how does that thing work internally? And what does it have to do with async
/ await
?