according to help, long network tasks should be performed in the context of Dispatcher.IO.
But why couldn't use suspend function like get in Dispatcher.Main context? Thread itself isn't blocked, so do we expect any problem from code like:
GlobalScope.launch(Dispatchers.Main) {
val client = HttpClient(Android)
var data: String = client.get('http://example.com')
}
assuming get is suspend function taking much time.
Thanks.