Join Slack
How would one create something like Promise.race() with coroutines?
# coroutines
s
spand
05/30/2018, 11:45 AM
How would one create something like Promise.race() with coroutines?
d
diesieben07
05/30/2018, 11:50 AM
I think a
select
would do that:
https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md#selecting-deferred-values
s
spand
05/30/2018, 12:18 PM
Seems so. Thanks
8
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by