Created
April 10, 2016 02:17
-
-
Save cavarzan/81ee58e35eddbf4399f4f3d634fc6e7e 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 -> { | |
s.onNext(new Object()); | |
s.onCompleted(); | |
}) | |
.subscribeOn(HandlerScheduler.from(new Handler())) // just using new Handler() | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment