Join Slack
I’m planning to implement `rx's take(1)` with coroutine. Is there a good way to do it? for example, ...
# coroutines
h
hyunghui
08/07/2019, 10:16 AM
I’m planning to implement
rx's take(1)
with coroutine. Is there a good way to do it? for example, run 10 random jobs and wait only until the fastest job finishes.
g
gildor
08/07/2019, 10:20 AM
Flow already has
take()
operator
https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/take.html
👍 1
h
hyunghui
08/07/2019, 1:19 PM
Thanks! 🤖
4
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by