let's say i want to turn this into a coroutine function, is it enough that i turn
blockingFunction
into
suspend
function or would the three functions inside also need to be converted for the best implementation?
n
Nikky
09/03/2018, 12:01 PM
this helped me understand how coroutines work
https://kotlinlang.slack.com/archives/C0BJ0GTE2/p1535716303000100
and when i should use them,
if they are long blocking calls you probably want to mark them as suspend and if possible also parallelize work inside them if at all possible