https://kotlinlang.org logo
Title
t

Tunji Dahunsi

02/12/2022, 4:19 PM
From the docs:
A mutable state flow is created using MutableStateFlow(value) constructor function with the initial value. The value of mutable state flow can be updated by setting its value property. Updates to the value are always conflated. So a slow collector skips fast updates, but always collects the most recently emitted value.
I was wondering does this behavior
So a slow collector skips fast updates, but always collects the most recently emitted value.
also apply to
StateFlow
instances created with the
stateIn
method?
Ah it would appear so.