@@ -227,7 +227,7 @@ public interface Transformer<T, R> extends Func1<Observable<T>, Observable<R>> {
227227 * @see <a href="http://reactivex.io/documentation/single.html">ReactiveX documentation: Single</a>
228228 * @since (if this graduates from Experimental/Beta to supported, replace this parenthetical with the release number)
229229 */
230- @Experimental
230+ @Beta
231231 public Single<T> toSingle() {
232232 return new Single<T>(OnSubscribeSingle.create(this));
233233 }
@@ -1789,9 +1789,8 @@ public final static <T> Observable<T> merge(Observable<? extends Observable<? ex
17891789 * @throws IllegalArgumentException
17901790 * if {@code maxConcurrent} is less than or equal to 0
17911791 * @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
17931793 */
1794- @Experimental
17951794 @SuppressWarnings({"unchecked", "rawtypes"})
17961795 public final static <T> Observable<T> merge(Observable<? extends Observable<? extends T>> source, int maxConcurrent) {
17971796 if (source.getClass() == ScalarSynchronousObservable.class) {
@@ -2088,9 +2087,8 @@ public final static <T> Observable<T> merge(Observable<? extends T>[] sequences)
20882087 * the maximum number of Observables that may be subscribed to concurrently
20892088 * @return an Observable that emits all of the items emitted by the Observables in the Array
20902089 * @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
20922091 */
2093- @Experimental
20942092 public final static <T> Observable<T> merge(Observable<? extends T>[] sequences, int maxConcurrent) {
20952093 return merge(from(sequences), maxConcurrent);
20962094 }
@@ -4014,9 +4012,8 @@ public void call(Subscriber<? super T> subscriber) {
40144012 * the alternate Observable to subscribe to if the source does not emit any items
40154013 * @return an Observable that emits the items emitted by the source Observable or the items of an
40164014 * 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
40184016 */
4019- @Experimental
40204017 public final Observable<T> switchIfEmpty(Observable<? extends T> alternate) {
40214018 return lift(new OperatorSwitchIfEmpty<T>(alternate));
40224019 }
@@ -5896,9 +5893,8 @@ public final Observable<T> onBackpressureBuffer() {
58965893 *
58975894 * @return the source Observable modified to buffer items up to the given capacity
58985895 * @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
59005897 */
5901- @Beta
59025898 public final Observable<T> onBackpressureBuffer(long capacity) {
59035899 return lift(new OperatorOnBackpressureBuffer<T>(capacity));
59045900 }
@@ -5917,9 +5913,8 @@ public final Observable<T> onBackpressureBuffer(long capacity) {
59175913 *
59185914 * @return the source Observable modified to buffer items up to the given capacity
59195915 * @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
59215917 */
5922- @Beta
59235918 public final Observable<T> onBackpressureBuffer(long capacity, Action0 onOverflow) {
59245919 return lift(new OperatorOnBackpressureBuffer<T>(capacity, onOverflow));
59255920 }
@@ -5941,9 +5936,8 @@ public final Observable<T> onBackpressureBuffer(long capacity, Action0 onOverflo
59415936 * @return the source Observable modified to drop {@code onNext} notifications on overflow
59425937 * @see <a href="http://reactivex.io/documentation/operators/backpressure.html">ReactiveX operators documentation: backpressure operators</a>
59435938 * @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
59455940 */
5946- @Experimental
59475941 public final Observable<T> onBackpressureDrop(Action1<? super T> onDrop) {
59485942 return lift(new OperatorOnBackpressureDrop<T>(onDrop));
59495943 }
@@ -5968,72 +5962,6 @@ public final Observable<T> onBackpressureDrop() {
59685962 return lift(OperatorOnBackpressureDrop.<T>instance());
59695963 }
59705964
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-
60375965 /**
60385966 * Instructs an Observable that is emitting items faster than its observer can consume them to
60395967 * hold onto the latest value and emit that on request.
@@ -6050,10 +5978,8 @@ public final Observable<T> onBackpressureBlock() {
60505978 * requesting more than 1 from downstream doesn't guarantee a continuous delivery of onNext events.
60515979 *
60525980 * @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
60555982 */
6056- @Experimental
60575983 public final Observable<T> onBackpressureLatest() {
60585984 return lift(OperatorOnBackpressureLatest.<T>instance());
60595985 }
@@ -8728,9 +8654,8 @@ public final Observable<T> takeWhile(final Func1<? super T, Boolean> predicate)
87288654 * condition after each item, and then completes if the condition is satisfied.
87298655 * @see <a href="http://reactivex.io/documentation/operators/takeuntil.html">ReactiveX operators documentation: TakeUntil</a>
87308656 * @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
87328658 */
8733- @Experimental
87348659 public final Observable<T> takeUntil(final Func1<? super T, Boolean> stopPredicate) {
87358660 return lift(new OperatorTakeUntilPredicate<T>(stopPredicate));
87368661 }
0 commit comments