Created
January 5, 2018 22:41
-
-
Save epool/66b6d004d2508d97b52b47f31d1c9d92 to your computer and use it in GitHub Desktop.
Kotlin Non-Blocking
This file contains hidden or 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
Pikmail.getProfile("[email protected]") | |
.subscribeOn(Schedulers.io()) | |
.observeOn(AndroidSchedulers.mainThread()) | |
.subscribe( | |
{ println(it.toString()) }, | |
{ println(it.cause.toString()) } | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment