Join Slack
Powered by
does anyone have an example of starting a coroutin...
# coroutines
p
pakoito
09/03/2017, 5:44 PM
does anyone have an example of starting a coroutine inside a suspendCoroutineOrReturn block?
d
dragas
09/03/2017, 6:42 PM
why not return a job and
join
it when necessary?
dragas
09/03/2017, 6:45 PM
Or even
https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md#concurrent-using-async
p
pakoito
09/03/2017, 10:09 PM
That’s a blocking solution, I’m after a non-blocking one
pakoito
09/03/2017, 10:10 PM
Problem is for non-blocking, even if you start a new deferred, the result never seems to complete or return back
pakoito
09/03/2017, 10:11 PM
even if you move the outer coroutine’s continuation inside the completion block of the inner one
5
Views
Open in Slack
Previous
Next