AmrJyniat
10/02/2021, 9:42 AMcombine
function in variable x as following:
val x = combine(flow1, flow2) { (flow1, flow2) ->
listOf(flow1, flow2)
}
when I call collect on x flow the result will be empty because flow1 and flow2 not ready yet, so I want to trigger collect on each flow gets ready to get latest data always.Dominaezzz
10/02/2021, 9:54 AMAmrJyniat
10/02/2021, 10:02 AMDominaezzz
10/02/2021, 10:24 AMstojan
10/02/2021, 2:30 PMflow1.onStart { emit(defaultValue) }
And the same for flow2nilTheDev
10/02/2021, 6:55 PM