Esa
02/27/2020, 8:58 AMTimur Atakishiev
02/27/2020, 8:59 AMEsa
02/27/2020, 9:01 AMTimur Atakishiev
02/27/2020, 9:04 AMEsa
02/27/2020, 9:08 AMlaunch
simply creates a`Job` element that is then run at once. As you iterate on a list with forEach
, every element of that list will trigger a new job through launch. So you will create n
amount of jobs from the coroutineScope provided from runBlocking
. This is my understanding at least.Kroppeb
02/27/2020, 6:17 PMdelay(1000)
won't wait for all those coroutines to finish.Esa
02/28/2020, 11:07 AM