I'm using RxJava2 Android Networking for network call. The problem I'm facing is when I'm trying to hit the API through Schedulers.io()
sometimes it does not give any response whereas when I tried hitting the API with Schedulers.newThread()
it always gives a response
.subscribeOn(Schedulers.newThread())
AND .subscribeOn(Schedulers.io())