https://kotlinlang.org logo
#android
Title
# android
t

TarunY

08/22/2021, 5:41 PM
Hi Guys, can you suggest me how to solve below issue & attached the code
s

sabrak

08/22/2021, 6:03 PM
Try, .launch(Dispatchers.IO) {}
Bc as i remember by default viewmodelscope launches in main thead dispatcher
👍 1
t

TarunY

08/23/2021, 1:41 AM
@sabrak Thanks for the suggestion