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

hikkidev

11/26/2019, 7:16 AM
Hi there 😺. How can I make PublishRelay through Kotlin Cold Flows ? I know about ConflatedBroadcastChannel, but it hot channels.
g

gildor

11/26/2019, 12:59 PM
PublishRelay/PublishSubject is also hot and it's by definition
ConflatedBroadcastChannel is wrong replacement, it's analogue of BehaviorSubject. You need BroadcastChannel, and just use asFlow() extension
👍 1
5 Views