kristianconk
11/09/2020, 6:22 PMlaunch{
flow1.collect{ ... }
flow2.collect{ ... }
...
}
but only flow1 is executed, if comment flow1 then flow2 is executednrobi
11/09/2020, 6:25 PMnrobi
11/09/2020, 6:26 PMkristianconk
11/09/2020, 6:26 PMkristianconk
11/09/2020, 6:27 PMwhile(true){
emit(data)
delay(1000)
}
Jason Ostrander
11/09/2020, 6:37 PMnrobi
11/09/2020, 6:39 PMflow.onEach { .... }.launchIn(yourScope)
as @Jason Ostrander suggestedkristianconk
11/09/2020, 6:40 PMgildor
11/09/2020, 11:33 PMSo you need to collect them in different scopesNot different scopes, but different coroutine to collect each, scope can be the same
nrobi
11/10/2020, 4:09 AMcoroutineScope
, rather the scope of the lambda/launch