Different outputs when using Kotlin playground (by Google Android) vs IntelliJ when using Coroutines
I am trying to run this code:
import kotlinx.coroutines.*
fun main() {
repeat(3) {
GlobalScope.launch {
println("Hi from ${Thread.currentThread()}")
}
}
}
In IntelliJ I get this output:
6
1405 PM: Executing task 'Coroutines_multipleKt.main()'...
Task :wrapper
BUILD SUCCESSFUL in 184ms
1 actionable task: 1 executed
Task :compileKotlin
Task :compileJava NO-SOURCE
Task :processResources NO-SOURCE
Task :classes UP-TO-DATE
Task...