Created
April 10, 2016 03:01
-
-
Save cavarzan/15fe9b6abcde41cded1a2c1707d2b8d8 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
Object first = Observable | |
.create(s -> { | |
System.out.println("hue"); | |
s.onNext(new Object()); | |
new Handler(); | |
s.onCompleted(); | |
}) | |
.subscribeOn(HandlerScheduler.from(new AsyncHandler("IO_HANDLER"))) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.toBlocking() | |
.first(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment