@@ -6139,7 +6139,7 @@ public final <B, U extends Collection<? super T>> Flowable<U> buffer(Callable<?
6139
6139
@BackpressureSupport(BackpressureKind.FULL)
6140
6140
@SchedulerSupport(SchedulerSupport.NONE)
6141
6141
public final Flowable<T> cache() {
6142
- return FlowableCache.from(this );
6142
+ return cacheWithInitialCapacity(16 );
6143
6143
}
6144
6144
6145
6145
/**
@@ -6201,7 +6201,7 @@ public final Flowable<T> cache() {
6201
6201
@SchedulerSupport(SchedulerSupport.NONE)
6202
6202
public final Flowable<T> cacheWithInitialCapacity(int initialCapacity) {
6203
6203
ObjectHelper.verifyPositive(initialCapacity, "initialCapacity");
6204
- return FlowableCache.from( this, initialCapacity);
6204
+ return RxJavaPlugins.onAssembly(new FlowableCache<T>( this, initialCapacity) );
6205
6205
}
6206
6206
6207
6207
/**
@@ -6466,7 +6466,7 @@ public final <R> Flowable<R> concatMapDelayError(Function<? super T, ? extends P
6466
6466
return FlowableScalarXMap.scalarXMap(v, mapper);
6467
6467
}
6468
6468
ObjectHelper.verifyPositive(prefetch, "prefetch");
6469
- return RxJavaPlugins.onAssembly(new FlowableConcatMap<T, R>(this, mapper, prefetch, tillTheEnd ? ErrorMode.END : ErrorMode.IMMEDIATE ));
6469
+ return RxJavaPlugins.onAssembly(new FlowableConcatMap<T, R>(this, mapper, prefetch, tillTheEnd ? ErrorMode.END : ErrorMode.BOUNDARY ));
6470
6470
}
6471
6471
6472
6472
@@ -9633,13 +9633,13 @@ public final Flowable<T> onBackpressureBuffer(int capacity, Action onOverflow) {
9633
9633
* @param capacity number of slots available in the buffer.
9634
9634
* @param onOverflow action to execute if an item needs to be buffered, but there are no available slots. Null is allowed.
9635
9635
* @param overflowStrategy how should the {@code Publisher} react to buffer overflows. Null is not allowed.
9636
- * @return the source {@code Publisher } modified to buffer items up to the given capacity
9636
+ * @return the source {@code Flowable } modified to buffer items up to the given capacity
9637
9637
* @see <a href="http://reactivex.io/documentation/operators/backpressure.html">ReactiveX operators documentation: backpressure operators</a>
9638
9638
* @since 2.0
9639
9639
*/
9640
9640
@BackpressureSupport(BackpressureKind.SPECIAL)
9641
9641
@SchedulerSupport(SchedulerSupport.NONE)
9642
- public final Publisher <T> onBackpressureBuffer(long capacity, Action onOverflow, BackpressureOverflowStrategy overflowStrategy) {
9642
+ public final Flowable <T> onBackpressureBuffer(long capacity, Action onOverflow, BackpressureOverflowStrategy overflowStrategy) {
9643
9643
ObjectHelper.requireNonNull(overflowStrategy, "strategy is null");
9644
9644
ObjectHelper.verifyPositive(capacity, "capacity");
9645
9645
return RxJavaPlugins.onAssembly(new FlowableOnBackpressureBufferStrategy<T>(this, capacity, onOverflow, overflowStrategy));
0 commit comments