Slide 6
Slide 6 text
Subscribing
Disposable d = article().subscribeWith(new DisposableObserver() {
@Override
public void onNext(Article article) {
// this can be called multiple times, never null as of 2.x!
}
@Override
public void onError(Throwable e) {
// no more events, and automatically unsubscribed
}
@Override
public void onComplete() {
// no more events, and automatically unsubscribed
}
});