https://kotlinlang.org logo
#coroutines
Title
# coroutines
i

igorvd

09/21/2018, 1:45 PM
someone have an guide showing how to migrate from coroutines 0.25.0 to 0.26.1 ? I understand that have some big changes, but things that usually worked before, aren't working now. I'm trying to get a result from a suspend function, inside another suspend function, without wrapping in any new coroutine, and it's not working... If I debug, I can see the right result in the
return
line on my second suspend function, but it never return to the first one...
n

Nikky

09/21/2018, 1:48 PM
can you show code ? a selfcontained example to reproduce it would be best
i

igorvd

09/21/2018, 2:18 PM
Now it's working, and I didn't changed a line of code. Just to be sure, now I need to implement the
CoroutineScope
interface, and all coroutines that I create, without specifying the context, it'll use the `coroutineContext`from the interface? If I define a dispatcher when building my coroutine, what dispatcher will be used? Thanks
3 Views