wbertan11/24/2020, 3:34 PM
to handle a kind of
, but facing issues when trying to set the same value again (for example when the user clicks the same button again, triggering same event). Found this GitHub issue: https://github.com/Kotlin/kotlinx.coroutines/issues/2011 With @elizarov comment:
Do we have anything in the latest release to handle this scenario?
We'll provide a different, more flexible primitive, for those rare cases when you don't want equality-based conflation. Stay tuned.
bezrukov11/24/2020, 3:41 PM
wbertan11/24/2020, 3:47 PM
Basically I want to use the
MutableSharedFlow<Event>(1, onBufferOverflow = BufferOverflow.DROP_OLDEST)
bezrukov11/24/2020, 3:50 PM
MutableSharedFlow<Event>(1, extraBufferCapacity = ... , onBufferOverflow = BufferOverflow.DROP_OLDEST)
wbertan11/24/2020, 3:52 PM