Eric Chee
02/22/2024, 7:32 PMflow.onEach{}.launchIn(scope)
over scope.launch{ flow.collect{} }
because it makes it look cleaner (personal preference). But what i do miss is the ability to pass in a exception handler like scope.launch(exceptionHandler) { ...collect() }
. is there a way we can somehow add an exceptionhandler to Flow.launchIn() function?ephemient
02/22/2024, 7:38 PM.launchIn(scope + exceptionhandler)
should behave the same wayEric Chee
02/22/2024, 8:34 PMbaxter
02/24/2024, 5:18 AMcatch {}
on your flow?Eric Chee
02/26/2024, 6:31 PM