Hacker News new | ask | show | jobs
by Kennethtruyers 3692 days ago
Any questions are welcome!
2 comments

I like this article. It was very well laid out. I've already added a new card to my Trello board for taking a look at implementing "yield" in our software application.
Thanks! Great to hear it's of use.
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!)

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!

There's no coroutines involved.

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