VP
val b = getSecondFile()
val c = getThirdFile()
use(a, b, c) { ... }
a
осталсяSize: a a a
VP
a
осталсяIP
a
осталсяIP
AL
withFailures {
val a: A = open { openwhatever() }
val b: B = open { openAnotherWhatever() }
a.doA()
b.doB()
}
// all open's are closed.
AL
IP
withFailures {
val a: A = open { openwhatever() }
val b: B = open { openAnotherWhatever() }
a.doA()
b.doB()
}
// all open's are closed.
VP
withFailures {
val a: A = open { openwhatever() }
val b: B = open { openAnotherWhatever() }
a.doA()
b.doB()
}
// all open's are closed.
AL
AL
VP
useFoo(block: (T) -> R)
.(
AL
VP
(
AM
AM
AI
AM
AM
с#