Kroppeb
11/05/2019, 3:09 AMrunBlocking {
fun tt(s: CoroutineScope) = s.launch(start = CoroutineStart.LAZY) { }
val s = this
tt(s)
}
octylFractal
11/05/2019, 3:24 AMstreetsofboston
11/05/2019, 3:29 AMCoroutineScope
can only finish if all its child-Coroutines have finished (Structured Concurrency). The CoroutineScope provided by the runBlocking never ends/finishes since one of its child-Coroutines (s.launch) never finishes. Therefore the call to runBlocking never returns, since it only will return after its CoroutineScope ends.Kroppeb
11/05/2019, 4:43 AMbdawg.io
11/05/2019, 6:20 AMKroppeb
11/05/2019, 11:05 AM