Skip to content

Commit 441ed9f

Browse files
committed
fix Mima issues
1 parent c90c903 commit 441ed9f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

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

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ import scala.util.control.NonFatal
3636
abstract class ExecutorScheduler(e: ExecutorService, r: UncaughtExceptionReporter, additionalFeatures: Features)
3737
extends SchedulerService with ReferenceScheduler with BatchingScheduler {
3838

39-
override final val features: Features = additionalFeatures + Scheduler.BATCHING
39+
private val allFeatures: Features = additionalFeatures + Scheduler.BATCHING
40+
41+
// for backwards compatibility
42+
def this(e: ExecutorService, r: UncaughtExceptionReporter) =
43+
this(e, r, Features.empty)
4044

4145
/** Returns the underlying `ExecutorService` reference. */
4246
def executor: ExecutorService = e
@@ -79,6 +83,8 @@ abstract class ExecutorScheduler(e: ExecutorService, r: UncaughtExceptionReporte
7983
throw new NotImplementedError("ExecutorService.withUncaughtExceptionReporter")
8084
// $COVERAGE-ON$
8185
}
86+
87+
override def features: Features = allFeatures
8288
}
8389

8490
object ExecutorScheduler {

0 commit comments

Comments
 (0)