×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Luis Pereira
Added: Jul 4, 2017 3:56 PM
Modified: Jul 4, 2017 3:58 PM
Views: 11
Observable
  1. .subscribeOn(Schedulers.io())
  2. .observeOn(AndroidSchedulers.mainThread()) //there are other tasks inside subscriber that need io() thread
  3. .subscribe()