感谢解答!
第一个问题确实是我粗心写错了,重新表述:
这是原文代码:
LCObject todo = LCObject.createWithoutData("Todo", "582570f38ac247004f39c24b");
todo.fetchInBackground().subscribe(new Observable<LCObject>() {
public void onSubscribe(Disposable disposable) {}
public void onNext(LCObject todo) {
// todo 已刷新
}
public void onError(Throwable throwable) {}
public void onComplete() {}
});
标红提示:
None of the following functions can be called with the arguments supplied.
- subscribe(Observer) defined in io.reactivex.Observable
- subscribe(Consumer!) defined in io.reactivex.Observable
问题:
标红提示指,并没有一个传入Observable的subscribe()函数,是否应该将Observable修改为Observer?
同步对象中有两处是Observable