Skip to content

Instantly share code, notes, and snippets.

@cavarzan
Created April 10, 2016 02:17
Show Gist options
  • Save cavarzan/81ee58e35eddbf4399f4f3d634fc6e7e to your computer and use it in GitHub Desktop.
Save cavarzan/81ee58e35eddbf4399f4f3d634fc6e7e to your computer and use it in GitHub Desktop.
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