Skip to content

Commit aa51fb1

Browse files
committed
3.x: Javadocs fix some wording in Schedulers.java
1 parent a463d24 commit aa51fb1

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
* The initial and runtime values of the various scheduler types can be overridden via the
2828
* {@code RxJavaPlugins.setInit(scheduler name)SchedulerHandler()} and
2929
* {@code RxJavaPlugins.set(scheduler name)SchedulerHandler()} respectively.
30+
* Note that overriding any initial {@code Scheduler} via the {@link RxJavaPlugins}
31+
* has to happen before the {@code Schedulers} class is accessed.
3032
* <p>
3133
* <strong>Supported system properties ({@code System.getProperty()}):</strong>
3234
* <ul>
@@ -453,7 +455,7 @@ public static Scheduler from(@NonNull Executor executor) {
453455
* <p>History: 2.2.6 - experimental
454456
* @param executor
455457
* the executor to wrap
456-
* @param interruptibleWorker if {@code true} the tasks submitted to the {@link io.reactivex.rxjava3.core.Scheduler.Worker Scheduler.Worker} will
458+
* @param interruptibleWorker if {@code true}, the tasks submitted to the {@link io.reactivex.rxjava3.core.Scheduler.Worker Scheduler.Worker} will
457459
* be interrupted when the task is disposed.
458460
* @return the new {@code Scheduler} wrapping the {@code Executor}
459461
* @since 3.0.0
@@ -532,9 +534,9 @@ public static Scheduler from(@NonNull Executor executor, boolean interruptibleWo
532534
* Note that this method returns a new {@code Scheduler} instance, even for the same {@code Executor} instance.
533535
* @param executor
534536
* the executor to wrap
535-
* @param interruptibleWorker if {@code true} the tasks submitted to the {@link io.reactivex.rxjava3.core.Scheduler.Worker Scheduler.Worker} will
537+
* @param interruptibleWorker if {@code true}, the tasks submitted to the {@link io.reactivex.rxjava3.core.Scheduler.Worker Scheduler.Worker} will
536538
* be interrupted when the task is disposed.
537-
* @param fair if {@code true} tasks submitted to the will be executed by the underlying {@code Executor} one after the other, still
539+
* @param fair if {@code true}, tasks submitted to the {@code Scheduler} or {@code Worker} will be executed by the underlying {@code Executor} one after the other, still
538540
* in a FIFO and non-overlapping manner, but allows interleaving with other tasks submitted to the underlying {@code Executor}.
539541
* If {@code false}, the underlying FIFO scheme will execute as many tasks as it can before giving up the underlying {@code Executor} thread.
540542
* @return the new {@code Scheduler} wrapping the {@code Executor}

0 commit comments

Comments
 (0)