Why does “Done!” get printed earlier than “count” value? I want “Done!” to be printed only after completing code inside runBlocking. What’s wrong with my code? Thanks in advance.
z
Zach Klippenstein (he/him) [MOD]
11/01/2024, 3:44 AM
Because you’re launching those coroutines into a scope that is not a child of the runBlocking scope