Join Slack
Powered by
How would one create something like Promise.race()...
# 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
9
Views
Open in Slack
Previous
Next