with 1.1 beta, captured var is no longer volatile...
# eap
j
with 1.1 beta, captured var is no longer volatile, but this would always be "cool", right?
Copy code
val timedOut = arrayOf(false)
thread {
timeOut[0] = true
}
Thread.sleep(100)
  println(if (timedOut[0] ) "cool" else "ouch!")