Learn-Kotlin-Coroutines icon indicating copy to clipboard operation
Learn-Kotlin-Coroutines copied to clipboard

Why apiHelper not using any separate dispatcher here?

Open souravpalitrana opened this issue 1 year ago • 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

souravpalitrana avatar Nov 25 '22 16:11 souravpalitrana