Skip to content

Commit 624c4fb

Browse files
authored
Update Schedulers.java (#7453)
Fix wording about cancellation
1 parent 8473610 commit 624c4fb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public static Scheduler single() {
318318
* calls to it.
319319
* <p>
320320
* If the provided executor doesn't support any of the more specific standard Java executor
321-
* APIs, cancelling tasks scheduled by this scheduler can't be interrupted when they are
321+
* APIs, tasks scheduled by this scheduler can't be interrupted when they are
322322
* executing but only prevented from running prior to that. In addition, tasks scheduled with
323323
* a time delay or periodically will use the {@link #single()} scheduler for the timed waiting
324324
* before posting the actual task to the given executor.
@@ -327,13 +327,13 @@ public static Scheduler single() {
327327
* {@link #from(Executor, boolean)} overload to enable task interruption via this wrapper.
328328
* <p>
329329
* If the provided executor supports the standard Java {@link ExecutorService} API,
330-
* cancelling tasks scheduled by this scheduler can be cancelled/interrupted by calling
330+
* tasks scheduled by this scheduler can be cancelled/interrupted by calling
331331
* {@link io.reactivex.rxjava3.disposables.Disposable#dispose()}. In addition, tasks scheduled with
332332
* a time delay or periodically will use the {@link #single()} scheduler for the timed waiting
333333
* before posting the actual task to the given executor.
334334
* <p>
335335
* If the provided executor supports the standard Java {@link ScheduledExecutorService} API,
336-
* cancelling tasks scheduled by this scheduler can be cancelled/interrupted by calling
336+
* tasks scheduled by this scheduler can be cancelled/interrupted by calling
337337
* {@link io.reactivex.rxjava3.disposables.Disposable#dispose()}. In addition, tasks scheduled with
338338
* a time delay or periodically will use the provided executor. Note, however, if the provided
339339
* {@code ScheduledExecutorService} instance is not single threaded, tasks scheduled
@@ -405,13 +405,13 @@ public static Scheduler from(@NonNull Executor executor) {
405405
* before posting the actual task to the given executor.
406406
* <p>
407407
* If the provided executor supports the standard Java {@link ExecutorService} API,
408-
* canceling tasks scheduled by this scheduler can be cancelled/interrupted by calling
408+
* tasks scheduled by this scheduler can be cancelled/interrupted by calling
409409
* {@link io.reactivex.rxjava3.disposables.Disposable#dispose()}. In addition, tasks scheduled with
410410
* a time delay or periodically will use the {@link #single()} scheduler for the timed waiting
411411
* before posting the actual task to the given executor.
412412
* <p>
413413
* If the provided executor supports the standard Java {@link ScheduledExecutorService} API,
414-
* canceling tasks scheduled by this scheduler can be cancelled/interrupted by calling
414+
* tasks scheduled by this scheduler can be cancelled/interrupted by calling
415415
* {@link io.reactivex.rxjava3.disposables.Disposable#dispose()}. In addition, tasks scheduled with
416416
* a time delay or periodically will use the provided executor. Note, however, if the provided
417417
* {@code ScheduledExecutorService} instance is not single threaded, tasks scheduled
@@ -487,13 +487,13 @@ public static Scheduler from(@NonNull Executor executor, boolean interruptibleWo
487487
* before posting the actual task to the given executor.
488488
* <p>
489489
* If the provided executor supports the standard Java {@link ExecutorService} API,
490-
* canceling tasks scheduled by this scheduler can be cancelled/interrupted by calling
490+
* tasks scheduled by this scheduler can be cancelled/interrupted by calling
491491
* {@link io.reactivex.rxjava3.disposables.Disposable#dispose()}. In addition, tasks scheduled with
492492
* a time delay or periodically will use the {@link #single()} scheduler for the timed waiting
493493
* before posting the actual task to the given executor.
494494
* <p>
495495
* If the provided executor supports the standard Java {@link ScheduledExecutorService} API,
496-
* canceling tasks scheduled by this scheduler can be cancelled/interrupted by calling
496+
* tasks scheduled by this scheduler can be cancelled/interrupted by calling
497497
* {@link io.reactivex.rxjava3.disposables.Disposable#dispose()}. In addition, tasks scheduled with
498498
* a time delay or periodically will use the provided executor. Note, however, if the provided
499499
* {@code ScheduledExecutorService} instance is not single threaded, tasks scheduled

0 commit comments

Comments
 (0)