When using `flatMapLatest` (<https://kotlinlang.or...
# coroutines
b
When using
flatMapLatest
(https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/flat-map-latest.html), what happens produced (inner) flow finishes but the receiver flow does not? does it finish or wait for the next inner flow to be produced?
z
It waits. If no errors, the downstream flow will not complete until the upstream one does, just like
map
.
👍 1