Join Slack
Is there an `onEach` variant but with `onEachLatest` instead? I have a flow that has an `onEach` ope...
# coroutines
a
Ahmed Ibrahim
02/26/2021, 3:53 PM
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.
Ahmed Ibrahim
02/26/2021, 3:54 PM
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
78
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by