I don't have experience with python generators. My reference point for this kind of thing is Lua's coroutines
http://www.lua.org/pil/9.1.html which I've used quite a bit for async IO style server code without callbacks. So I'd be looking for something to replace that in Kotlin