4 ms·
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 v
by krylon 11y ago
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!)
- Kennethtruyers 11y agoYes, 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_C.23 https://en.wikipedia.org/wiki/Coroutine#Implementations_for_... Thanks, glad you enjoyed it!
- JeanSebTr 11y agoThere's no coroutines involved. It use a simple state machine. The async keyword is implemented with the same principle.