Skip to content

Commit 6e8a400

Browse files
committed
Revert "fix: handle ForkJoinPool scheduling behavior in ExecutorScheduler"
This reverts commit 61732f3.
1 parent 61732f3 commit 6e8a400

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

monix-execution/jvm/src/main/scala/monix/execution/schedulers/ExecutorScheduler.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,6 @@ object ExecutorScheduler {
100100
// Implementations will inherit BatchingScheduler, so this is guaranteed
101101
val ft = features + Scheduler.BATCHING
102102
service match {
103-
case _: ForkJoinPool =>
104-
// ForkJoinPool implements ScheduledExecutorService since JDK 25,
105-
// but its scheduling behavior differs from ScheduledThreadPoolExecutor
106-
// (e.g. exception handling in scheduled tasks). Use the simple executor
107-
// path with Monix's own ScheduledExecutorService for reliable scheduling.
108-
val s = Defaults.scheduledExecutor
109-
new FromSimpleExecutor(s, service, reporter, executionModel, ft)
110103
case ref: ScheduledExecutorService =>
111104
new FromScheduledExecutor(ref, reporter, executionModel, ft)
112105
case _ =>

0 commit comments

Comments
 (0)