Hello all. I am trying to emulate behavior of es6 ...
# coroutines
y
Hello all. I am trying to emulate behavior of es6 generators with coroutines (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/function*). The main difference with yield operator supported in kotlin right now is that in es6 yield allow for two way data transfer (i.e. you return value but the receiver can also send back something). How do you suggest to implement this with coroutines?