Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Yigit, do you have time to fix it?
reemission of the same liveData is racy
reemission of the same liveData is racy
mg...@google.com <mg...@google.com>
il...@google.com <il...@google.com> #3
yea i'll take it.
pr...@google.com <pr...@google.com> #4
Thanks for the detailed analysis. This may not be an issue anymore since we've started using Main.immediate there but I' not sure; I'll try to create a test case.
Description
Currently, Lifecycle.eventFlow stops sending out new events when the
Lifecycle
reaches theDESTROYED
state. However, theFlow
never completes.Ideally, Lifecycle.eventFlow should complete when the
Lifecycle
isDESTROYED
. This would signal to consumers that they won't receive any new emissions and the flow is terminated.We found this issue while working on b/370577987 , which disallows moving from the
DESTROYED
state to any other state.