Join Slack
Powered by
Hi I am testing coroutines. I want my code to run ...
# coroutines
b
Burkhard
11/09/2018, 10:13 AM
Hi I am testing coroutines. I want my code to run in parallel, not waiting for a result. How am I suppose to do that? I 've searched the internet with no luck.. Thread in Slack Conversation
l
lukaswelte
11/09/2018, 10:19 AM
@BillKarv
This should help you
https://github.com/Kotlin/kotlinx.coroutines/blob/master/docs/composing-suspending-functions.md
lukaswelte
11/09/2018, 10:20 AM
For short, starting your suspending function wrapped in
async {}
and then after all the concurrent coroutines are started calling
.await()
on all of them
3
Views
Open in Slack
Previous
Next