Vsevolod Tolstopyatov [JB]
04/04/2019, 1:25 PMkotlinx.coroutines
1.2.0-alpha-2 is here!
It has one major feature preview: cold streams aka Flow
to work with asynchronous cold streams of data.
The primary goal of the feature preview is to explore its possible strengths and weaknesses, evaluate real-world use-cases and finally adapt and refine it.
Try it, use it, break it!
Full API reference for `Flow`: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/-flow/index.htmlDias
04/04/2019, 1:46 PMgildor
04/04/2019, 2:04 PMVsevolod Tolstopyatov [JB]
04/04/2019, 2:06 PMmap
will be eventually deprecated and removed (but only when Flow
is stable).
The core channel API will be left as isDias
04/04/2019, 2:30 PMgumil
04/04/2019, 3:33 PMlouiscad
04/04/2019, 6:28 PMVsevolod Tolstopyatov [JB]
04/04/2019, 10:44 PMlouiscad
04/05/2019, 6:20 AM<http://Dispatchers.IO|Dispatchers.IO>
here but use a custom single thread context instead? https://github.com/qwwdfsad/FlowPlayground/blob/master/src/main/kotlin/examples/FlowForDatabase.ktgildor
04/05/2019, 7:00 AMdebounce
operator?Vsevolod Tolstopyatov [JB]
04/05/2019, 8:22 AMgildor
04/05/2019, 8:24 AMVsevolod Tolstopyatov [JB]
04/05/2019, 8:49 AMlittlelightcz
04/05/2019, 4:17 PMgildor
04/06/2019, 2:48 AMflow {}
with NewInference, it crashes compiler:
https://youtrack.jetbrains.com/issue/KT-30853