mayojava
10/12/2018, 9:51 AMrunBlocking
and coroutineScope
in the coroutine docs, it says coroutineScope
does not block the current thread while waiting for all its children to complete. Then an example was given that shows otherwise. coroutineScope
actually blocks the thread that runBlocking
was invoked from while waiting for its children to complete. Have I understood this the wrong way?enleur
10/12/2018, 9:58 AMcoroutineScope
does not block a real thread, it suspends coroutine same as delay
doesJonathan
10/12/2018, 11:41 AMrunBlocking
does block. So your thread was blocked by runBlocking
, not by coroutineScope