File tree 1 file changed +7
-7
lines changed
src/main/java/rx/internal/schedulers
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -35,18 +35,18 @@ public final class GenericScheduledExecutorService implements SchedulerLifecycle
35
35
36
36
private static final String THREAD_NAME_PREFIX = "RxScheduledExecutorPool-" ;
37
37
private static final RxThreadFactory THREAD_FACTORY = new RxThreadFactory (THREAD_NAME_PREFIX );
38
-
39
- /* Schedulers needs acces to this in order to work with the lifecycle. */
40
- public final static GenericScheduledExecutorService INSTANCE = new GenericScheduledExecutorService ();
41
-
42
- private final AtomicReference <ScheduledExecutorService > executor ;
43
-
44
- static final ScheduledExecutorService NONE ;
38
+
39
+ private static final ScheduledExecutorService NONE ;
45
40
static {
46
41
NONE = Executors .newScheduledThreadPool (0 );
47
42
NONE .shutdownNow ();
48
43
}
44
+
45
+ /* Schedulers needs acces to this in order to work with the lifecycle. */
46
+ public final static GenericScheduledExecutorService INSTANCE = new GenericScheduledExecutorService ();
49
47
48
+ private final AtomicReference <ScheduledExecutorService > executor ;
49
+
50
50
private GenericScheduledExecutorService () {
51
51
executor = new AtomicReference <ScheduledExecutorService >(NONE );
52
52
start ();
You can’t perform that action at this time.
0 commit comments