> A coroutine is a function that you can jump back into after returning from it - and it remembers where it was in the code, and all the variables.
This is actually called a continuation. Coroutines are a control flow idiom for skipping back and forth between two blocks of code, which can depend on continuations.
This is actually called a continuation. Coroutines are a control flow idiom for skipping back and forth between two blocks of code, which can depend on continuations.