https://kotlinlang.org logo
#coroutines
Title
# coroutines
r

Robert Jaros

04/01/2021, 10:48 PM
Would it be somehow possible to "intercept" StateFlow subscriptions (and do something before and after all subscribers get new value)?
e

ephemient

04/01/2021, 11:15 PM
.onEach {}
would be "before" subscribers get each value, although the resulting type isn't StateFlow anymore so not sure if that would work for you
and it's unclear to me what "after" should mean, you can't control when a subscriber is "done" handing a value
d

Dominaezzz

04/02/2021, 5:53 AM
Transform
9 Views