Nikky
01/12/2020, 8:22 PMrunBlocking
in coroutines-core-jsoctylFractal
01/12/2020, 8:27 PMlaunch
on a CoroutineScope
such as the GlobalScope
, or preferably your own application-specific scopeoctylFractal
01/12/2020, 8:29 PMrunBlocking
because it doesn't make sense given JS's threading model (there is none). runBlocking
implies blocking the current thread, but in JS, there is no other thread, so if your coroutines suspend inside runBlocking
, what can resume them? where would the code continue from a suspension point?