ink
12/21/2020, 7:44 PMfor taks in tasks:
launch { task }
or would it be something like:
launch { task1, task2, ..., taskN }
diesieben07
12/21/2020, 7:46 PMink
12/21/2020, 7:48 PMDispatchers.IO.launch { block.invoke() }
diesieben07
12/21/2020, 7:55 PMlaunch
needs to be a CoroutineScope
, not the dispatcher. To set the dispatcher you would use launch(<http://Dispatchers.IO|Dispatchers.IO>) { }
Adam Powell
12/21/2020, 7:56 PMink
12/21/2020, 8:00 PMdiesieben07
12/21/2020, 8:01 PM<http://Dispatchers.IO|Dispatchers.IO>
. If not, it depends™.ink
12/21/2020, 8:10 PM