Can someone help me find where I am going wrong here. I need to continously observer network data and update the UI whenever there is a data change from the Worker. Please n
In another solution, you can call it from main dispatcher as
GlobalScope.launch(Dispatchers.Main) { // your code here... }