Skip to content

Instantly share code, notes, and snippets.

@epool
Created January 5, 2018 22:41
Show Gist options
  • Save epool/66b6d004d2508d97b52b47f31d1c9d92 to your computer and use it in GitHub Desktop.
Save epool/66b6d004d2508d97b52b47f31d1c9d92 to your computer and use it in GitHub Desktop.
Kotlin Non-Blocking
Pikmail.getProfile("eduardo.alejandro.pool.ake@gmail.com")
.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