Threading the Needle - Coroutines and Continuations

added by patrickdewane
4/2/2010 9:33:05 AM

0 Kicks, 76 Views

If you haven't already noticed, my blogs trends mostly towards the obscure for no reason other than I find it fun and interesting. Well, let's keep trending in that direction then. A few weeks back while iterating over some set of data (a generic list if I recall), I paused for a moment and re-realized the enumerator I was using was a form of coroutine. If you're not familiar with the term, a coroutine is a form of subroutine that supports multiple entry points and can pause and resume execution at pre-determined points in its definition.


0 comments