File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
src/main/java/com/diffplug/common/rx Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11# DurianRx releases
22
33## [ Unreleased]
4+ ### Fixed
5+ - ` Rx.createEmitFlow() ` now creates a flow with unlimited buffer, same as RxJava's ` PublishSubject ` .
46
57## [ 5.0.1] - 2025-01-26
68### Changed
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import kotlinx.coroutines.Deferred
3636import kotlinx.coroutines.Job
3737import kotlinx.coroutines.asCoroutineDispatcher
3838import kotlinx.coroutines.channels.BufferOverflow
39+ import kotlinx.coroutines.channels.Channel
3940import kotlinx.coroutines.flow.Flow
4041import kotlinx.coroutines.flow.MutableSharedFlow
4142import kotlinx.coroutines.flow.merge
@@ -102,7 +103,8 @@ import kotlinx.coroutines.flow.merge
102103object Rx {
103104 @JvmStatic
104105 fun <T > createEmitFlow () =
105- MutableSharedFlow <T >(replay = 0 , extraBufferCapacity = 1 , BufferOverflow .SUSPEND )
106+ MutableSharedFlow <T >(
107+ replay = 0 , extraBufferCapacity = Channel .UNLIMITED , BufferOverflow .SUSPEND )
106108
107109 @JvmStatic
108110 fun <T > emit (flow : MutableSharedFlow <T >, value : T ) {
You can’t perform that action at this time.
0 commit comments