https://kotlinlang.org logo
#flow
Title
# flow
t

Tunji Dahunsi

02/12/2022, 4:19 PM
From the docs:
Copy code
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
Copy code
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.
2 Views