reactormonk
11/12/2024, 9:27 AMcurrentStateFlow
changes?
currentStateFlow.takeWhile { it == CurrentState.IncomingRing.WhatsApp }.collect()
Sam
11/12/2024, 10:49 AMcurrentStateFlow.first { it != CurrentState.IncomingRing.WhatsApp }
State flows never emit duplicates, so by definition there'll be at most one emission of the CurrentState.IncomingRing.WhatsApp
value before it changes. That probably doesn't change your implementation, though.reactormonk
11/13/2024, 1:29 AMcancel()
after this line, oops. Ah neat idea with the simplification.