Last active
April 10, 2016 02:28
-
-
Save cavarzan/2782d6a82a44f2489709d376023b44ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Observable | |
.create(s -> { | |
// do some crazy stuff in "IO_HANDLER" | |
s.onNext(new Object()); | |
s.onCompleted(); | |
}) | |
.subscribeOn(HandlerScheduler.from(new CustomHandler("IO_HANDLER"))) | |
.observeOn(AndroidSchedulers.mainThread()) // don't forget to switch back to MainThread. | |
.subscribe(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment