Preface What’s the difference between normal function and coroutine: coroutines are functions that allow for multiple entry points, that can yield multiple times, and resume their execution when called again. coroutines can transfer execution to any other coroutine instead of just the coroutine that called them. Functions, being special cases of coroutines, have a single entry point, can only yield once, and can only transfer execution back to the caller

Read More…