Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: