val result = AtomicInteger() coroutineScope { for (i in 1..15000) { launch { result.getAndIncrement() } } } println(result.get())