and get data to show in page with bellow settings
                  
                  
                  
                  
                  
                  .observeOn(AndroidSchedulers.mainThread())   .subscribeOn(Schedulers.io())   .subscribeWith(object : DisposableObserver<ResponsePacket ){...}
                  
                  
                  
                  
                  
                  but if user go back in in during of  request app has crash with this error 
                  
                  
                   java.lang.IllegalStateException: Fatal Exception thrown on Scheduler.
                  
                  
                  
                  
                  
                  what should i do to when user in during of request go back or even close app the request cancelled automatically ?
                  
                  
                
Use CompositeDisposal in onStop method.
Обсуждают сегодня