amitshekhariitbhu/Learn-Kotlin-Coroutines

Why apiHelper not using any separate dispatcher here?

souravpalitrana opened this issue · 0 comments

In SingleNetworkCall feature you are launching a coroutine in the viewmodel. As no dispatcher mentioned it uses the main thread. Again in the apiHelper suspend function there is no use of Dispathcer.IO . Should not we use that as it is doing I/O task? Yes retrofit it handling the network part. But still I am thinking of the right approach. @amitshekhariitbhu