You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For events you should continue to either use BroadcastChannel(1), if you put events into the StateFlow, protect them from double-processing with flags.
I see two preferred ways to publish events as a Flow<Event> to guarantee they are consumed.
Guaranteed delivery to a single subscriber - no multiple subscribers
Guaranteed delivery to at least single subscriber, but multiple subscribers can receive events
My understanding of BroadcastChannel<Event>(1) is that it will drop events if there are no subscribers at the time, which does not make it very useful in my opinion.
The text was updated successfully, but these errors were encountered:
My understanding of BroadcastChannel<Event>(1) is that it will drop events if there are no subscribers at the time, which does not make it very useful in my opinion.
@ZakTaccardi It depends on your use-case. With mouse-clicks, etc, you usually want to start listening to them only from the moment of subscription and onwards.
Looking at the release notes for 1.3.6
I see two preferred ways to publish events as a
Flow<Event>
to guarantee they are consumed.My understanding of
BroadcastChannel<Event>(1)
is that it will drop events if there are no subscribers at the time, which does not make it very useful in my opinion.The text was updated successfully, but these errors were encountered: