dave08
05/27/2019, 3:02 PMreturn
, so am I returning from the outer function bypassing the use
?
fun doSomething(): Boolean =
resource.use {
if (condition) return false
}
diesieben07
05/27/2019, 3:03 PMuse
uses try-finally under the hood, so there is no way to exit from use
that does not close the resource.dave08
05/27/2019, 3:03 PM