CoRoutine: A Source-to-Source Go Compiler and Runtime Library

An open source Go compiler and runtime library that turns Go programs into resumable state machines. The function passed as the coroutine entry point can be paused at yield points and later resumed by the caller, exchanging values in both directions.

Code