I am having difficulty getting the difference in b...
# coroutines
b
I am having difficulty getting the difference in behavior between
runBlocking
and
coroutineScope
, which I put into this question. Could someone help me with it, please?
z
The biggest difference is that
runBlocking
is for running coroutine code from a non-suspend functions. It’s not a suspend function itself.
coroutineScope
is a suspend function and can only be called from other suspend functions.