rcd27
03/02/2023, 3:04 PMmerge them, and collect all values they produce(and complete them all when the resulting flow completes). Issue: no items emitted, when hot one is idle. What is the nice way to combine two flows, making the resulting one - cold?
where:
• banEvents: MutableStateFlow
• chatMessagesOutput: Flowrcd27
03/02/2023, 3:29 PMCLOVIS
03/02/2023, 3:29 PMrcd27
03/02/2023, 3:30 PMCLOVIS
03/02/2023, 3:30 PMrcd27
03/02/2023, 3:33 PMCLOVIS
03/02/2023, 3:33 PM.onEach { println("some message: $it") } to both of your flows (before the merge) to check that they do emit values
onEach prints whatever goes through the flow without impacting itrcd27
03/02/2023, 3:34 PMKevin Worth
03/02/2023, 3:36 PMchatMessages the StateFlow?rcd27
03/02/2023, 3:36 PMFlowKevin Worth
03/02/2023, 3:37 PMbanEvents, then?rcd27
03/02/2023, 3:37 PMrcd27
03/02/2023, 3:37 PMfilterNotNull becomes Flow as wellrcd27
03/02/2023, 3:40 PMKevin Worth
03/02/2023, 3:40 PMfilterNotNull().onEach { println(it) } prints nothing? Are you sure there’s an emit somewhere on banEvents?rcd27
03/02/2023, 3:40 PMrcd27
03/02/2023, 3:40 PMrcd27
03/02/2023, 3:41 PMKevin Worth
03/02/2023, 3:41 PMrcd27
03/02/2023, 3:50 PMmerge) just never completes, that's why I'm catching the error in Turbine test(yes, I still receive chat messages, no bans since they are null)