https://kotlinlang.org logo
e

elizarov

05/19/2017, 12:49 PM
@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