Does something like a hot `Flow` make sense, or is...
# coroutines
t
Does something like a hot
Flow
make sense, or is
Flow
dedicated to only cold asynchronous streams while `Channel`s are the best choice for hot streams ?
g
You can convert channel to Flow, so it’s actually become hot
Also, there is proposal to reimplement BroadcastChannel using Flow interface, so it will be actually hot flow https://github.com/Kotlin/kotlinx.coroutines/issues/1082
a
@gildor how do you convert channels to flow? Or do you just mean bridging it with something like
flowViaChannel
?
g
You can create flow from any BroadcastChannel
There is asFlow extension
flowViaChannel is not hot
Probably "convert" is not exactly correct, it's like subscribe on channel emissions using flow