Skip to content

Commit

Permalink
Rename to make it clearer about creation
Browse files Browse the repository at this point in the history
Added scheduler because we're not in Scheduler anymore. Changed to "create" because "newNewThread" was weird
  • Loading branch information
ZacSweers committed Jan 19, 2017
1 parent 8009333 commit 66111c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/io/reactivex/plugins/RxJavaPlugins.java
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ public static Completable onAssembly(Completable source) {
* @since 2.0.5 - experimental
*/
@Experimental
public static Scheduler newComputation(ThreadFactory threadFactory) {
public static Scheduler createComputationScheduler(ThreadFactory threadFactory) {
return new ComputationScheduler(ObjectHelper.requireNonNull(threadFactory, "threadFactory is null"));
}

Expand All @@ -950,7 +950,7 @@ public static Scheduler newComputation(ThreadFactory threadFactory) {
* @since 2.0.5 - experimental
*/
@Experimental
public static Scheduler newIo(ThreadFactory threadFactory) {
public static Scheduler createIoScheduler(ThreadFactory threadFactory) {
return new IoScheduler(ObjectHelper.requireNonNull(threadFactory, "threadFactory is null"));
}

Expand All @@ -963,7 +963,7 @@ public static Scheduler newIo(ThreadFactory threadFactory) {
* @since 2.0.5 - experimental
*/
@Experimental
public static Scheduler newNewThread(ThreadFactory threadFactory) {
public static Scheduler createNewThreadScheduler(ThreadFactory threadFactory) {
return new NewThreadScheduler(ObjectHelper.requireNonNull(threadFactory, "threadFactory is null"));
}

Expand All @@ -976,7 +976,7 @@ public static Scheduler newNewThread(ThreadFactory threadFactory) {
* @since 2.0.5 - experimental
*/
@Experimental
public static Scheduler newSingle(ThreadFactory threadFactory) {
public static Scheduler createSingleScheduler(ThreadFactory threadFactory) {
return new SingleScheduler(ObjectHelper.requireNonNull(threadFactory, "threadFactory is null"));
}

Expand Down

0 comments on commit 66111c5

Please sign in to comment.