News for hackers. Stuff that matters.
Re:Yield return in C# by krylon on Thursday May 12, 2016 @09:22AM (#11683170)
Honest question: Is this just coroutines or am I missing something?

(Either way, I did not know C# had this feature, it looks very nice! Also, the article is very well written, thanks a lot!)

Re:Yield return in C# by Kennethtruyers on Thursday May 12, 2016 @09:26AM (#11683183)
Yes, yield return (and iterators in general) are the coroutine implementation in c#.

Here's some more info (although outdated): https://en.wikipedia.org/wiki/Coroutine#Implementations_for_...

Thanks, glad you enjoyed it!

Re:Yield return in C# by JeanSebTr on Thursday May 12, 2016 @11:15AM (#11683968)
There's no coroutines involved.

It use a simple state machine. The async keyword is implemented with the same principle.