Skip to content

Instantly share code, notes, and snippets.

@jdamcd
Last active September 26, 2015 20:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jdamcd/18cf785fa69568ff06b4 to your computer and use it in GitHub Desktop.
Observable.create(new Observable.OnSubscribe<String>() {
@Override
public void call(Subscriber<? super String> subscriber) {
subscriber.onNext(Example.blocking());
subscriber.onCompleted();
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment