Create a gist now

Instantly share code, notes, and snippets.

@jdamcd /Observable.java Secret
Last active Sep 26, 2015

What would you like to do?
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