voben
04/23/2020, 3:52 PMviewModelScope.launch {
val myResponse = fetchMyData() // okhttp moves this work to a background thread
doSomethingWithMyResponse(myResponse) // Does this need to be done on a background thread using withContext?
}
Dominaezzz
04/23/2020, 4:00 PM<http://Dispatcher.IO|Dispatcher.IO>
, the main thread will suffice.octylFractal
04/23/2020, 5:03 PMsuspendCancellableCoroutine