@@ -227,7 +227,7 @@ public interface Transformer<T, R> extends Func1<Observable<T>, Observable<R>> {
227
227
* @see <a href="http://reactivex.io/documentation/single.html">ReactiveX documentation: Single</a>
228
228
* @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
229
229
*/
230
- @Experimental
230
+ @Beta
231
231
public Single<T> toSingle() {
232
232
return new Single<T>(OnSubscribeSingle.create(this));
233
233
}
@@ -1789,9 +1789,8 @@ public final static <T> Observable<T> merge(Observable<? extends Observable<? ex
1789
1789
* @throws IllegalArgumentException
1790
1790
* if {@code maxConcurrent} is less than or equal to 0
1791
1791
* @see <a href="http://reactivex.io/documentation/operators/merge.html">ReactiveX operators documentation: Merge</a>
1792
- * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
1792
+ * @since 1.1.0
1793
1793
*/
1794
- @Experimental
1795
1794
@SuppressWarnings({"unchecked", "rawtypes"})
1796
1795
public final static <T> Observable<T> merge(Observable<? extends Observable<? extends T>> source, int maxConcurrent) {
1797
1796
if (source.getClass() == ScalarSynchronousObservable.class) {
@@ -2088,9 +2087,8 @@ public final static <T> Observable<T> merge(Observable<? extends T>[] sequences)
2088
2087
* the maximum number of Observables that may be subscribed to concurrently
2089
2088
* @return an Observable that emits all of the items emitted by the Observables in the Array
2090
2089
* @see <a href="http://reactivex.io/documentation/operators/merge.html">ReactiveX operators documentation: Merge</a>
2091
- * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
2090
+ * @since 1.1.0
2092
2091
*/
2093
- @Experimental
2094
2092
public final static <T> Observable<T> merge(Observable<? extends T>[] sequences, int maxConcurrent) {
2095
2093
return merge(from(sequences), maxConcurrent);
2096
2094
}
@@ -4014,9 +4012,8 @@ public void call(Subscriber<? super T> subscriber) {
4014
4012
* the alternate Observable to subscribe to if the source does not emit any items
4015
4013
* @return an Observable that emits the items emitted by the source Observable or the items of an
4016
4014
* alternate Observable if the source Observable is empty.
4017
- * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
4015
+ * @since 1.1.0
4018
4016
*/
4019
- @Experimental
4020
4017
public final Observable<T> switchIfEmpty(Observable<? extends T> alternate) {
4021
4018
return lift(new OperatorSwitchIfEmpty<T>(alternate));
4022
4019
}
@@ -5896,9 +5893,8 @@ public final Observable<T> onBackpressureBuffer() {
5896
5893
*
5897
5894
* @return the source Observable modified to buffer items up to the given capacity
5898
5895
* @see <a href="http://reactivex.io/documentation/operators/backpressure.html">ReactiveX operators documentation: backpressure operators</a>
5899
- * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
5896
+ * @since 1.1.0
5900
5897
*/
5901
- @Beta
5902
5898
public final Observable<T> onBackpressureBuffer(long capacity) {
5903
5899
return lift(new OperatorOnBackpressureBuffer<T>(capacity));
5904
5900
}
@@ -5917,9 +5913,8 @@ public final Observable<T> onBackpressureBuffer(long capacity) {
5917
5913
*
5918
5914
* @return the source Observable modified to buffer items up to the given capacity
5919
5915
* @see <a href="http://reactivex.io/documentation/operators/backpressure.html">ReactiveX operators documentation: backpressure operators</a>
5920
- * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
5916
+ * @since 1.1.0
5921
5917
*/
5922
- @Beta
5923
5918
public final Observable<T> onBackpressureBuffer(long capacity, Action0 onOverflow) {
5924
5919
return lift(new OperatorOnBackpressureBuffer<T>(capacity, onOverflow));
5925
5920
}
@@ -5941,9 +5936,8 @@ public final Observable<T> onBackpressureBuffer(long capacity, Action0 onOverflo
5941
5936
* @return the source Observable modified to drop {@code onNext} notifications on overflow
5942
5937
* @see <a href="http://reactivex.io/documentation/operators/backpressure.html">ReactiveX operators documentation: backpressure operators</a>
5943
5938
* @Experimental The behavior of this can change at any time.
5944
- * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
5939
+ * @since 1.1.0
5945
5940
*/
5946
- @Experimental
5947
5941
public final Observable<T> onBackpressureDrop(Action1<? super T> onDrop) {
5948
5942
return lift(new OperatorOnBackpressureDrop<T>(onDrop));
5949
5943
}
@@ -5968,72 +5962,6 @@ public final Observable<T> onBackpressureDrop() {
5968
5962
return lift(OperatorOnBackpressureDrop.<T>instance());
5969
5963
}
5970
5964
5971
- /**
5972
- * Instructs an Observable that is emitting items faster than its observer can consume them to
5973
- * block the producer thread.
5974
- * <p>
5975
- * <img width="640" height="245" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/bp.obp.block.png" alt="">
5976
- * <p>
5977
- * The producer side can emit up to {@code maxQueueLength} onNext elements without blocking, but the
5978
- * consumer side considers the amount its downstream requested through {@code Producer.request(n)}
5979
- * and doesn't emit more than requested even if more is available. For example, using
5980
- * {@code onBackpressureBlock(384).observeOn(Schedulers.io())} will not throw a MissingBackpressureException.
5981
- * <p>
5982
- * Note that if the upstream Observable does support backpressure, this operator ignores that capability
5983
- * and doesn't propagate any backpressure requests from downstream.
5984
- * <p>
5985
- * Warning! Using a chain like {@code source.onBackpressureBlock().subscribeOn(scheduler)} is prone to
5986
- * deadlocks because the consumption of the internal queue is scheduled behind a blocked emission by
5987
- * the subscribeOn. In order to avoid this, the operators have to be swapped in the chain:
5988
- * {@code source.subscribeOn(scheduler).onBackpressureBlock()} and in general, no subscribeOn operator should follow
5989
- * this operator.
5990
- *
5991
- * @param maxQueueLength the maximum number of items the producer can emit without blocking
5992
- * @return the source Observable modified to block {@code onNext} notifications on overflow
5993
- * @see <a href="http://reactivex.io/documentation/operators/backpressure.html">ReactiveX operators documentation: backpressure operators</a>
5994
- * @Experimental The behavior of this can change at any time.
5995
- * @deprecated The operator doesn't work properly with {@link #subscribeOn(Scheduler)} and is prone to
5996
- * deadlocks. It will be removed/unavailable starting from 1.1.
5997
- * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
5998
- */
5999
- @Experimental
6000
- @Deprecated
6001
- public final Observable<T> onBackpressureBlock(int maxQueueLength) {
6002
- return lift(new OperatorOnBackpressureBlock<T>(maxQueueLength));
6003
- }
6004
-
6005
- /**
6006
- * Instructs an Observable that is emitting items faster than its observer can consume them to block the
6007
- * producer thread if the number of undelivered onNext events reaches the system-wide ring buffer size.
6008
- * <p>
6009
- * <img width="640" height="245" src="https://raw.github.com/wiki/ReactiveX/RxJava/images/rx-operators/bp.obp.block.png" alt="">
6010
- * <p>
6011
- * The producer side can emit up to the system-wide ring buffer size onNext elements without blocking, but
6012
- * the consumer side considers the amount its downstream requested through {@code Producer.request(n)}
6013
- * and doesn't emit more than requested even if available.
6014
- * <p>
6015
- * Note that if the upstream Observable does support backpressure, this operator ignores that capability
6016
- * and doesn't propagate any backpressure requests from downstream.
6017
- * <p>
6018
- * Warning! Using a chain like {@code source.onBackpressureBlock().subscribeOn(scheduler)} is prone to
6019
- * deadlocks because the consumption of the internal queue is scheduled behind a blocked emission by
6020
- * the subscribeOn. In order to avoid this, the operators have to be swapped in the chain:
6021
- * {@code source.subscribeOn(scheduler).onBackpressureBlock()} and in general, no subscribeOn operator should follow
6022
- * this operator.
6023
- *
6024
- * @return the source Observable modified to block {@code onNext} notifications on overflow
6025
- * @see <a href="http://reactivex.io/documentation/operators/backpressure.html">ReactiveX operators documentation: backpressure operators</a>
6026
- * @Experimental The behavior of this can change at any time.
6027
- * @deprecated The operator doesn't work properly with {@link #subscribeOn(Scheduler)} and is prone to
6028
- * deadlocks. It will be removed/unavailable starting from 1.1.
6029
- * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
6030
- */
6031
- @Experimental
6032
- @Deprecated
6033
- public final Observable<T> onBackpressureBlock() {
6034
- return onBackpressureBlock(rx.internal.util.RxRingBuffer.SIZE);
6035
- }
6036
-
6037
5965
/**
6038
5966
* Instructs an Observable that is emitting items faster than its observer can consume them to
6039
5967
* hold onto the latest value and emit that on request.
@@ -6050,10 +5978,8 @@ public final Observable<T> onBackpressureBlock() {
6050
5978
* requesting more than 1 from downstream doesn't guarantee a continuous delivery of onNext events.
6051
5979
*
6052
5980
* @return the source Observable modified so that it emits the most recently-received item upon request
6053
- * @Experimental The behavior of this can change at any time.
6054
- * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
5981
+ * @since 1.1.0
6055
5982
*/
6056
- @Experimental
6057
5983
public final Observable<T> onBackpressureLatest() {
6058
5984
return lift(OperatorOnBackpressureLatest.<T>instance());
6059
5985
}
@@ -8728,9 +8654,8 @@ public final Observable<T> takeWhile(final Func1<? super T, Boolean> predicate)
8728
8654
* condition after each item, and then completes if the condition is satisfied.
8729
8655
* @see <a href="http://reactivex.io/documentation/operators/takeuntil.html">ReactiveX operators documentation: TakeUntil</a>
8730
8656
* @see Observable#takeWhile(Func1)
8731
- * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
8657
+ * @since 1.1.0
8732
8658
*/
8733
- @Experimental
8734
8659
public final Observable<T> takeUntil(final Func1<? super T, Boolean> stopPredicate) {
8735
8660
return lift(new OperatorTakeUntilPredicate<T>(stopPredicate));
8736
8661
}
0 commit comments