Emit from a catch block is bad practice ? Android ...
# coroutines
v
Emit from a catch block is bad practice ? Android developer guide says it not https://developer.android.com/kotlin/flow
K 1
g
Why is it a bad practice? Really think it depends on your case
i
This is exactly what the
Flow.catch
operator is for - to transform or map exceptions thrown upstream into something appropriate for downstream consumers: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/catch.html