digitalsanctum
01/03/2019, 11:53 PMlistOf(
CoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>).launch { ddbTools.deleteTableInRegions(destinationTable, destinationRegions) },
CoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>).launch { jobService.deleteJobTable() },
CoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>).launch { jobService.deleteCheckpointTable() }).joinAll()
louiscad
01/04/2019, 12:02 AMwithContext(<http://Dispatchers.IO|Dispatchers.IO>) {
launch { … }
launch { … }
launch { … }
} //No need for joinAll() thanks to structured concurrency
digitalsanctum
01/04/2019, 12:03 AMlouiscad
01/04/2019, 12:55 AMdigitalsanctum
01/04/2019, 12:56 AMlouiscad
01/04/2019, 12:57 AM