<How to wait for Retrofit async operation to compl...
# stackoverflow
u
How to wait for Retrofit async operation to complete in Kotlin? I am new to Kotlin, coming from C# it I am quite used to async\await How do I wait for tvClient to get the response before returning the list of channels? override fun getChannels(): MutableList { disposable = tvClient.getChannels() .subscribeOn(Schedulers.io()) .observeOn(AndroidSchedulers.mainThread()) .subscribe( {Log.d("***", it.toString())}, {Log.d("***",it.toString())}...