that seems to work ``` fun main(args: Array<St...
# coroutines
m
that seems to work
Copy code
fun main(args: Array<String>) {
  runBlocking {
    val duration = measureTimeMillis {
      val jobs = arrayListOf<Job>()
      repeat(1000) { i ->
        jobs += launch { doThing("10s") }
      }
      jobs.forEach { it.join() }
    }
    println("Length=$duration")
  }
}