File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ public static TestScheduler test() {
127
127
* the executor to wrap
128
128
* @return the new Scheduler wrapping the Executor
129
129
*/
130
- public static Scheduler newExecutor (Executor executor ) {
130
+ public static Scheduler from (Executor executor ) {
131
131
return new ExecutorScheduler (executor );
132
132
}
133
133
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ public class ExecutorSchedulerTest extends AbstractSchedulerConcurrencyTests {
22
22
23
23
@ Override
24
24
protected Scheduler getScheduler () {
25
- return Schedulers .newExecutor (Executors .newFixedThreadPool (2 , new NewThreadScheduler .RxThreadFactory ("TestCustomPool-" )));
25
+ return Schedulers .from (Executors .newFixedThreadPool (2 , new NewThreadScheduler .RxThreadFactory ("TestCustomPool-" )));
26
26
}
27
27
28
28
}
You can’t perform that action at this time.
0 commit comments