[LL FIR] invalidate ValueWithPostCompute cache state on PCE

This commit is contained in:
Ilya Kirillov
2022-07-10 23:20:33 +02:00
parent 795b6656db
commit c46c723a1b
@@ -78,7 +78,9 @@ internal class ValueWithPostCompute<KEY, VALUE, DATA>(
_postCompute!!(key, calculated, data)
calculated
} catch (e: Throwable) {
if (e !is ProcessCanceledException) {
if (e is ProcessCanceledException) {
value = ValueIsNotComputed
} else {
value = ExceptionWasThrownDuringValueComputation(e)
}
throw e