jakiej
val timedOut = arrayOf(false) thread { timeOut[0] = true } Thread.sleep(100) println(if (timedOut[0] ) "cool" else "ouch!")