dharrigan
08/11/2019, 12:15 PMMarko Mitic
08/11/2019, 1:09 PMMarko Mitic
08/11/2019, 1:11 PMcoroutineScope { }
and make doSomething
suspendingcoroutineScope { }
would be more useful for #1Marko Mitic
08/11/2019, 1:12 PMMarko Mitic
08/11/2019, 1:54 PMsuspend fun doSomething() = withContext(<http://Dispatchers.IO|Dispatchers.IO>) {
writeIntoTable1()
writeIntoTable2()
writeIntoTable3()
}
gildor
08/11/2019, 2:31 PMwithContext(<http://Dispatchers.IO|Dispatchers.IO>)
is not needed if writeIntoTableN
is suspend function