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

Jason Ankers

04/21/2021, 4:14 AM
If I update a
StateFlow
value from
Dispatchers.Main
, and have some separate code collecting the flow also on
Dispatchers.Main
, can I guarantee that the collector receives the value immediately (synchronously) after the state flow emits?
e

ephemient

04/21/2021, 4:24 AM
maybe MainCoroutineDispatcher.immediate but no, I wouldn't expect that from .Main