elizarov
02/06/2017, 7:04 AMit.await()
change your runBlocking
block to:
runBlocking {
launch(context) { // launch another coroutine in the context of this thread
while (true) {
println(”I’m not blocked!”)
delay(100)
}
}
jobs.forEach {
val r = it.await()
println("Got response for ${r.first} - ${r.second}")
}
}