gildor
11/15/2017, 6:30 AMlaunch with run and wrap function to runBlocking to prevent your app to finish:
fun main(args: Array<String>) = runBlocking {
(1..100).forEach { n ->
run(CommonPool) {
println(n)
delay(100)
}
}
}