From a3bfa80a51050d81106a9a5ecf134da67908bbbd Mon Sep 17 00:00:00 2001 From: akarnokd Date: Fri, 24 Mar 2017 16:49:53 +0100 Subject: [PATCH] 2.x: improve the documentation of Schedulers utility class. --- .../annotations/SchedulerSupport.java | 7 + .../io/reactivex/schedulers/Schedulers.java | 207 ++++++++++++++++-- 2 files changed, 196 insertions(+), 18 deletions(-) diff --git a/src/main/java/io/reactivex/annotations/SchedulerSupport.java b/src/main/java/io/reactivex/annotations/SchedulerSupport.java index d405236c92..acf89ad988 100644 --- a/src/main/java/io/reactivex/annotations/SchedulerSupport.java +++ b/src/main/java/io/reactivex/annotations/SchedulerSupport.java @@ -59,6 +59,13 @@ * or takes timing information from it. */ String TRAMPOLINE = "io.reactivex:trampoline"; + /** + * The operator/class runs on RxJava's {@linkplain Schedulers#single() single scheduler} + * or takes timing information from it. + * @since 2.0.8 - experimental + */ + @Experimental + String SINGLE = "io.reactivex:single"; /** * The kind of scheduler the class or method uses. diff --git a/src/main/java/io/reactivex/schedulers/Schedulers.java b/src/main/java/io/reactivex/schedulers/Schedulers.java index 7f621c6071..6f1071590b 100644 --- a/src/main/java/io/reactivex/schedulers/Schedulers.java +++ b/src/main/java/io/reactivex/schedulers/Schedulers.java @@ -23,6 +23,10 @@ /** * Static factory methods for returning standard Scheduler instances. *

+ * The initial and runtime values of the various scheduler types can be overridden via the + * {@code RxJavaPlugins.setInit(scheduler name)SchedulerHandler()} and + * {@code RxJavaPlugins.set(scheduler name)SchedulerHandler()} respectively. + *

* Supported system properties ({@code System.getProperty()}): *