Adrian Blanco
10/29/2020, 9:19 AMPublishSubject.create<T>()
to MutableSharedFlow<T>(replay = 0, extraBufferCapacity = 1)
, but what I can't wrap my head around is what is the use case for MutableSharedFlow<T>()
? (both parameters set to zero by default). It doesn't really seem to do anything.gildor
10/29/2020, 9:23 AMAdrian Blanco
10/29/2020, 9:24 AMgildor
10/29/2020, 9:25 AMIt doesn’t really seem to do anythingIsn’t it emit if it already have subscribers? I didn’t try, just asking Also default constructor uses Suspend overflow policty, so emitter will suspend in this case
Adrian Blanco
10/29/2020, 9:36 AMgildor
10/29/2020, 9:38 AM. But I was using tryEmit to post values instead of the suspending emitProbably this why you have this problem, tryEmit will just drop value
Adrian Blanco
10/29/2020, 9:56 AM