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

Maciek

03/17/2020, 2:57 PM
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?
v

voben

03/17/2020, 3:00 PM
Using channel+flow here is probably a good idea. Similar answer on stack overflow https://stackoverflow.com/questions/56111292/publishsubject-with-kotlin-coroutines-flow
👍 1
11 Views