<How can I terminate the retrofit object?> I use r...
# stackoverflow
u
How can I terminate the retrofit object? I use retrofit in the application I developed in Kotlin. I use the serviceNew object for login. I need to create a serviceCustomer after login, but the serviceCustomer does not function until the serviceNew object ends. GlobalScope.launch(Dispatchers.Main) { var serviceNew: SimpleNewApi = RetrofitInstance.createInstanceNew().create(SimpleNewApi::class.java) val s= wf.getLoginControl(user,serviceNew) if(s==true){ val role =...