Join Slack
Powered by
Is `select { deferreds.forEach { it.onAwait { it }...
# coroutines
e
elizarov
01/21/2019, 8:55 PM
Is
select { deferreds.forEach { it.onAwait { it } } }
elegant enough?
💯 4
➕ 1
c
codyoss
01/21/2019, 8:55 PM
Beautiful, thanks!
m
marcoferrer
01/21/2019, 8:56 PM
@codyoss
Theres more info about this pattern here.
https://kotlinlang.org/docs/reference/coroutines/select-expression.html#selecting-deferred-values
c
codyoss
01/21/2019, 8:57 PM
thanks!
3
Views
Open in Slack
Previous
Next