Vsevolod Tolstopyatov [JB]
05/08/2020, 6:03 PMStateFlow
for reactive state handling is here!
• Most of the existing Flow
operators have left their experimental status
• runInterruptible
primitive for tying cancellation and interruptions
• Integration module for RxJava3
• Integration with BlockHound to detect inappropriate blocking calls
Thanks to all contributors!
Full changelog: https://github.com/Kotlin/kotlinx.coroutines/releases/tag/1.3.6Dariusz Kuc
05/08/2020, 6:18 PMstreetsofboston
05/08/2020, 6:39 PMStateFlow
api addition was speeeeedy! 🙂v0ldem0rt
05/08/2020, 7:18 PMVsevolod Tolstopyatov [JB]
05/08/2020, 7:52 PMDariusz Kuc
05/08/2020, 7:53 PMMarcelo Hernandez
05/08/2020, 9:56 PMlint
against our project and seems that with this update, we are running into the following lint error:
Error: Invalid package reference in org.jetbrains.kotlinx:kotlinx-coroutines-core; not included in Android: java.lang.instrument. Referenced from kotlinx.coroutines.debug.AgentPremain. [InvalidPackage]
Any thoughts?Vsevolod Tolstopyatov [JB]
05/08/2020, 10:15 PMMarcelo Hernandez
05/09/2020, 1:03 AMrkeazor
05/09/2020, 5:38 AMursus
05/09/2020, 7:54 AMgabin
05/09/2020, 11:03 AMstreetsofboston
05/09/2020, 11:27 AMmyanmarking
05/09/2020, 3:03 PMStateFlow
, protect them from double-processing with flags'. I dont understand its meaningrkeazor
05/09/2020, 3:19 PMmyanmarking
05/09/2020, 3:22 PMmyanmarking
05/09/2020, 3:24 PMval stateFlow = flow { Random.nextInt() }.shareIn(thisScope)
Assert.assertEquals(
stateFlow.first(),
stateFlow.first()
)
For me, the only thing missing in flow api. Other use cases i can cover with custom operatorsrkeazor
05/09/2020, 3:28 PMrkeazor
05/09/2020, 3:47 PMmyanmarking
05/09/2020, 3:47 PMrkeazor
05/09/2020, 3:48 PMursus
05/09/2020, 5:43 PMelizarov
05/09/2020, 6:01 PMBrendan Weinstein
05/09/2020, 11:48 PMoctylFractal
05/10/2020, 12:10 AM