<@U5FEMV74K> This looks a lot like a ES6-style gen...
# coroutines
e
@jogehrs This looks a lot like a ES6-style generators. The example implementation of ES6-style generator for Kotlin can be found here: https://github.com/Kotlin/kotlin-coroutines/blob/master/examples/generator/generator.kt