Hey guys, I want to send stream of data from one c...
# flow
m
Hey guys, I want to send stream of data from one class to the other (adapter/viewholder to activity). Previously I'd use RxJava's Subject for it, what would be recommended way of achieving this with flow? I see how I could do it with channels but it's hard for me to wrap my head around the flow for such use cases
Should I use something like this?
a
BroadcastChannel
is the closest thing to
PublishedSubject
here. you can use
openSubscription
for receiving events at runtime, but don’t forget to cancel the subscription once you are done.
👍 1
m
thanks!