Skip to content

Commit 46e71b1

Browse files
committed
Extending Executor is useful
1 parent b714c2b commit 46e71b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/main/scala/org/scalajs/macrotaskexecutor/MacrotaskExecutor.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
package org.scalajs.macrotaskexecutor
1818

1919
import scala.collection.mutable
20-
import scala.concurrent.ExecutionContext
20+
import scala.concurrent.{ExecutionContext, ExecutionContextExecutor}
2121
import scala.scalajs.js
2222
import scala.util.Random
2323
import scala.util.control.NonFatal
2424

2525
/**
2626
* Based on https://github.com/YuzuJS/setImmediate
2727
*/
28-
object MacrotaskExecutor extends ExecutionContext {
28+
object MacrotaskExecutor extends ExecutionContextExecutor {
2929
private[this] val Undefined = "undefined"
3030

3131
def execute(runnable: Runnable): Unit =

0 commit comments

Comments
 (0)