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

dan.the.man

10/20/2020, 9:34 PM
Is a
BroadcastChannel(BUFFERED)
still the best replacement for PublishSubject?
b

bezrukov

10/20/2020, 9:40 PM
Yes, another option is to use SharedFlow from 1.4.0-M1
t

tseisel

10/20/2020, 9:41 PM
sourceFlow.shareIn(coroutineScope, SharingStarted.EAGERLY)
should be closest replacement to `PublishSubject`: - no replayed value - starts emitting as soon as created
6 Views