PHP
·
发表于 5年以前
·
阅读量:8299
Observable.empty()
直接发送 onComplete() 事件
Observable.empty()
.subscribe(new Observer < Object > () {
@Override
public void onSubscribe(Disposable d) {
Log.d(TAG, "==================onSubscribe");
}
@Override
public void onNext(Object o) {
// this will not call
}
@Override
public void onError(Throwable e) {
// this will not call
}
@Override
public void onComplete() {
Log.d(TAG, "==================onComplete");
}
});