Skip to content

Instantly share code, notes, and snippets.

@anitaa1990
Created August 18, 2018 18:42
Show Gist options
  • Save anitaa1990/b3297d71ee470e694ef3177936edb29c to your computer and use it in GitHub Desktop.
Save anitaa1990/b3297d71ee470e694ef3177936edb29c to your computer and use it in GitHub Desktop.
Observable.range(1, 10)
.ignoreElements()
.subscribe(new CompletableObserver() {
@Override
public void onSubscribe(Disposable d) {
System.out.println("onSubscribed");
}
@Override
public void onComplete() {
System.out.println("Completed");
}
@Override
public void onError(Throwable e) {
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment