[LL FIR] invalidate ValueWithPostCompute cache state on PCE
This commit is contained in:
+3
-1
@@ -78,7 +78,9 @@ internal class ValueWithPostCompute<KEY, VALUE, DATA>(
|
|||||||
_postCompute!!(key, calculated, data)
|
_postCompute!!(key, calculated, data)
|
||||||
calculated
|
calculated
|
||||||
} catch (e: Throwable) {
|
} catch (e: Throwable) {
|
||||||
if (e !is ProcessCanceledException) {
|
if (e is ProcessCanceledException) {
|
||||||
|
value = ValueIsNotComputed
|
||||||
|
} else {
|
||||||
value = ExceptionWasThrownDuringValueComputation(e)
|
value = ExceptionWasThrownDuringValueComputation(e)
|
||||||
}
|
}
|
||||||
throw e
|
throw e
|
||||||
|
|||||||
Reference in New Issue
Block a user