blob: ba113b4e2fd84d5ec18261caf182705f330dd25f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package scala.scalajs.concurrent
import scala.concurrent.ExecutionContext
private[concurrent] object RunNowExecutionContext extends ExecutionContext {
def execute(runnable: Runnable) =
try { runnable.run() }
catch { case t: Throwable => reportFailure(t) }
def reportFailure(t: Throwable) =
Console.err.println("Failure in async execution: " + t)
}
|