gildor
02/19/2018, 2:55 AMfun main(args: Array<String>) {
println("Started")
thread {
TODO("Not ready!")
}
Thread.sleep(100)
println("Finished")
}
You will see:
Started
Exception in thread ....
Finished
It’s default behaviour of JVM.
But for example on Android such code would crash application