Hey guys, I want to send stream of data from one c...
# coroutines
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?
v
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