Join Slack
Powered by
Do channels have a callback to know when subscribe...
# coroutines
v
voben
12/23/2019, 6:53 AM
Do channels have a callback to know when subscribers are added similar to livedata’s
onActive
and
onInactive
?
d
Dominaezzz
12/23/2019, 9:26 AM
Channels don't have subscribers. You probably want to consider using `Flow`s.
➕ 1
v
voben
12/23/2019, 3:49 PM
Does the onActive and onInactive API exist in flow?
d
Dominaezzz
12/23/2019, 8:17 PM
There's something very similar.
onStart
and
onComplete
I think.
2
Views
Open in Slack
Previous
Next