Is there an `onEach` variant but with `onEachLates...
# coroutines
a
Is there an
onEach
variant but with
onEachLatest
instead? I have a flow that has an
onEach
operator on its chain, and in its body, there is a suspendCancellableCoroutine, and I want it to be cancelled when a new value is emitted, I tried looking around but couldn't find any.
Ah, its already a feature request in Coroutine's issue tracker, so I guess the answer is no. https://github.com/Kotlin/kotlinx.coroutines/issues/2214