jjzjj

concatwith

全部标签

java - 使用 Retrofit rxjava concatWith 时发生堆栈溢出

我想使用rxjavaObservable在Retrofit中处理分页。我听从了另一个question的建议.我有超过100个页面需要获取,但是链在第20页左右失败并停止对logcat中以下日志的可观察对象的任何进一步订阅04-0404:12:11.7662951-3012/com.example.appI/dalvikvm﹕threadid=28:stackoverflowoncalltoLjava/util/concurrent/atomic/AtomicLongFieldUpdater$CASUpdater;.compareAndSet:ZLJJ04-0404:12:11.7662

rx concatwith()仅返回第一个可流动结果

我已经发布了他们分别工作的所有方法,但是我面临第一个问题,我concatwith()两个流量returnuserFavouriteStores().concatWith(userOtherStores()).doOnNext(newConsumer>(){@Overridepublicvoidaccept(@io.reactivex.annotations.NonNullListstoreModels)throwsException{Log.i("storeModels",""+storeModels);}})publicFlowable>userFavouriteStores(){retur