Hi, today I come to you with a quick tip on how to update your StateFlows safely in Kotlin. — Hi, today I come to you with a quick tip on how to update your StateFlows safely in Kotlin. Recently a new version of Kotlin Coroutines library was released with a few new extensions functions to help you with StateFlow updates. It all started with this issue: Expose atomic updates on MutableStateFlow · Issue #2720 · Kotlin/kotlinx.coroutines
qwwdfsad added a commit that referenced this issue May 25, 2021 ...ableStateFlow (#2729) * Add update, updateAndGet…github.com