kirillrakhman
07/06/2017, 7:15 AMfun main(args: Array<String>) {
val gen1 = produce(CommonPool) {
send(1)
async(context) {
send(2)
}.await()
}
runBlocking {
gen1.channel.consumeEach {
println(it)
}
}
}
hm that actually works, but isn't it weird that I can call a function on one coroutine from another coroutine?