A compact educational implementation to use generators/promises as coroutines on ES6.