Skip to content

Commit a9e0a8a

Browse files
authored
3.x: API promotions for 3.1.0 (#7296)
1 parent 3330943 commit a9e0a8a

File tree

5 files changed

+12
-16
lines changed

5 files changed

+12
-16
lines changed

src/main/java/io/reactivex/rxjava3/core/Flowable.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12725,15 +12725,15 @@ public final Flowable<T> onBackpressureLatest() {
1272512725
* <dt><b>Scheduler:</b></dt>
1272612726
* <dd>{@code onBackpressureReduce} does not operate by default on a particular {@link Scheduler}.</dd>
1272712727
* </dl>
12728+
* <p>History: 3.0.9 - experimental
1272812729
* @param reducer the bi-function to call when there is more than one non-emitted value to downstream,
1272912730
* the first argument of the bi-function is previous item and the second one is currently
1273012731
* emitting from upstream
1273112732
* @return the new {@code Flowable} instance
1273212733
* @throws NullPointerException if {@code reducer} is {@code null}
12733-
* @since 3.0.9 - experimental
12734+
* @since 3.1.0
1273412735
* @see #onBackpressureReduce(Supplier, BiFunction)
1273512736
*/
12736-
@Experimental
1273712737
@CheckReturnValue
1273812738
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
1273912739
@SchedulerSupport(SchedulerSupport.NONE)
@@ -12764,6 +12764,7 @@ public final Flowable<T> onBackpressureReduce(@NonNull BiFunction<T, T, T> reduc
1276412764
* <dt><b>Scheduler:</b></dt>
1276512765
* <dd>{@code onBackpressureReduce} does not operate by default on a particular {@link Scheduler}.</dd>
1276612766
* </dl>
12767+
* <p>History: 3.0.9 - experimental
1276712768
* @param <R> the aggregate type emitted when the downstream requests more items
1276812769
* @param supplier the factory to call to create new item of type R to pass it as the first argument to {@code reducer}.
1276912770
* It is called when previous returned value by {@code reducer} already sent to
@@ -12774,9 +12775,8 @@ public final Flowable<T> onBackpressureReduce(@NonNull BiFunction<T, T, T> reduc
1277412775
* @return the new {@code Flowable} instance
1277512776
* @throws NullPointerException if {@code supplier} or {@code reducer} is {@code null}
1277612777
* @see #onBackpressureReduce(BiFunction)
12777-
* @since 3.0.9 - experimental
12778+
* @since 3.1.0
1277812779
*/
12779-
@Experimental
1278012780
@CheckReturnValue
1278112781
@BackpressureSupport(BackpressureKind.UNBOUNDED_IN)
1278212782
@SchedulerSupport(SchedulerSupport.NONE)

src/main/java/io/reactivex/rxjava3/internal/schedulers/SchedulerPoolFactory.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313

1414
package io.reactivex.rxjava3.internal.schedulers;
1515

16-
import java.util.*;
1716
import java.util.concurrent.*;
18-
import java.util.concurrent.atomic.AtomicReference;
1917

2018
import io.reactivex.rxjava3.exceptions.Exceptions;
2119
import io.reactivex.rxjava3.functions.Function;

src/main/java/io/reactivex/rxjava3/plugins/RxJavaPlugins.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,11 +1153,11 @@ public static void setOnParallelAssembly(@Nullable Function<? super ParallelFlow
11531153

11541154
/**
11551155
* Sets the specific hook function.
1156+
* <p>History: 3.0.11 - experimental
11561157
* @param handler the hook function to set, null allowed
1157-
* @since 3.0.11 - experimental
1158+
* @since 3.1.0
11581159
*/
11591160
@SuppressWarnings("rawtypes")
1160-
@Experimental
11611161
public static void setOnParallelSubscribe(@Nullable BiFunction<? super ParallelFlowable, ? super Subscriber[], ? extends Subscriber[]> handler) {
11621162
if (lockdown) {
11631163
throw new IllegalStateException("Plugins can't be changed anymore");
@@ -1167,11 +1167,11 @@ public static void setOnParallelSubscribe(@Nullable BiFunction<? super ParallelF
11671167

11681168
/**
11691169
* Returns the current hook function.
1170+
* <p>History: 3.0.11 - experimental
11701171
* @return the hook function, may be null
1171-
* @since 3.0.11 - experimental
1172+
* @since 3.1.0
11721173
*/
11731174
@SuppressWarnings("rawtypes")
1174-
@Experimental
11751175
@Nullable
11761176
public static BiFunction<? super ParallelFlowable, ? super Subscriber[], ? extends Subscriber[]> getOnParallelSubscribe() {
11771177
return onParallelSubscribe;

src/main/java/io/reactivex/rxjava3/schedulers/TestScheduler.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ public TestScheduler() {
5252
/**
5353
* Creates a new TestScheduler with the option to use the
5454
* {@link RxJavaPlugins#onSchedule(Runnable)} hook when scheduling tasks.
55+
* <p>History: 3.0.10 - experimental
5556
* @param useOnScheduleHook if {@code true}, the tasks submitted to this
5657
* TestScheduler is wrapped via the
5758
* {@link RxJavaPlugins#onSchedule(Runnable)} hook
58-
* @since 3.0.10 - experimental
59+
* @since 3.1.0
5960
*/
60-
@Experimental
6161
public TestScheduler(boolean useOnScheduleHook) {
6262
this.useOnScheduleHook = useOnScheduleHook;
6363
}
@@ -78,17 +78,16 @@ public TestScheduler(long delayTime, TimeUnit unit) {
7878
* Creates a new TestScheduler with the specified initial virtual time
7979
* and with the option to use the
8080
* {@link RxJavaPlugins#onSchedule(Runnable)} hook when scheduling tasks.
81-
*
81+
* <p>History: 3.0.10 - experimental
8282
* @param delayTime
8383
* the point in time to move the Scheduler's clock to
8484
* @param unit
8585
* the units of time that {@code delayTime} is expressed in
8686
* @param useOnScheduleHook if {@code true}, the tasks submitted to this
8787
* TestScheduler is wrapped via the
8888
* {@link RxJavaPlugins#onSchedule(Runnable)} hook
89-
* @since 3.0.10 - experimental
89+
* @since 3.1.0
9090
*/
91-
@Experimental
9291
public TestScheduler(long delayTime, TimeUnit unit, boolean useOnScheduleHook) {
9392
time = unit.toNanos(delayTime);
9493
this.useOnScheduleHook = useOnScheduleHook;

src/test/java/io/reactivex/rxjava3/internal/schedulers/SchedulerPoolFactoryTest.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import io.reactivex.rxjava3.core.RxJavaTest;
2121
import io.reactivex.rxjava3.functions.Function;
2222
import io.reactivex.rxjava3.internal.functions.Functions;
23-
import io.reactivex.rxjava3.schedulers.Schedulers;
2423
import io.reactivex.rxjava3.testsupport.TestHelper;
2524

2625
public class SchedulerPoolFactoryTest extends RxJavaTest {

0 commit comments

Comments
 (0)