See more
The launch(Dispatchers.Default) creates children coroutines in runBlocking scope, so runBlocking waits for their completion automatically.
launch(Dispatchers.Default)
runBlocking