Paul Woitaschek
09/07/2018, 3:17 PMdata class Person(val userName : String, age : Int)
Vsevolod Tolstopyatov [JB]
09/07/2018, 3:42 PMNow I want to combine these two so I can expose another channel ofIt’s actually not adata class Person(val userName : String, age : Int)
combineLatest
semantics.
For the combineLatest
I’d recommend using select
operator, for merging two channels kotlinx.coroutines
has zip operator: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental.channels/zip.htmlPaul Woitaschek
09/07/2018, 3:44 PMcombineLatest
semantic?Vsevolod Tolstopyatov [JB]
09/07/2018, 3:49 PMPerson("John", 30), Person("John", 32)
, it’s not a desired behavior for a person example, is it?Paul Woitaschek
09/07/2018, 3:53 PMVsevolod Tolstopyatov [JB]
09/07/2018, 3:58 PMlouiscad
09/08/2018, 12:32 AMPaul Woitaschek
09/08/2018, 5:51 AM