Create a gist now

Instantly share code, notes, and snippets.

@jdamcd /Subscriber.java Secret
Created Sep 22, 2015

What would you like to do?
private class UpdateSubscriber extends Subscriber<String> {
@Override
public void onNext(String text) {
updateUi(text);
}
@Override
public void onError(Throwable e) {
logError(e);
}
@Override
public void onCompleted() {
// Nothing
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment