Skip to content

Commit c5fd708

Browse files
Merge pull request ReactiveX#1882 from benjchristensen/scheduler-parallelism
Remove Unused Scheduler.parallelism
2 parents 461aa7a + 9d07b36 commit c5fd708

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

src/main/java/rx/Scheduler.java

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,18 +137,6 @@ public long now() {
137137
}
138138
}
139139

140-
/**
141-
* Indicates the parallelism available to this Scheduler.
142-
* <p>
143-
* This defaults to {@code Runtime.getRuntime().availableProcessors()} but can be overridden for use cases
144-
* such as scheduling work on a computer cluster.
145-
*
146-
* @return the scheduler's available degree of parallelism
147-
*/
148-
public int parallelism() {
149-
return Runtime.getRuntime().availableProcessors();
150-
}
151-
152140
/**
153141
* Gets the current time, in milliseconds, according to this Scheduler.
154142
*

0 commit comments

Comments
 (0)