diff options
author | Viktor Klang <viktor.klang@gmail.com> | 2013-01-14 11:53:55 +0100 |
---|---|---|
committer | Philipp Haller <hallerp@gmail.com> | 2013-01-21 19:01:23 +0100 |
commit | 08a74e55c15a8102d2b9184b29c5bc7474a4dd91 (patch) | |
tree | e27c34b7e2bc0f0c5f272c4ad485399eb28bf236 /src/library/scala/concurrent/Future.scala | |
parent | 18a906bb9a6c6b50d286ca76f219a5b351514ae4 (diff) | |
download | scala-08a74e55c15a8102d2b9184b29c5bc7474a4dd91.tar.gz scala-08a74e55c15a8102d2b9184b29c5bc7474a4dd91.tar.bz2 scala-08a74e55c15a8102d2b9184b29c5bc7474a4dd91.zip |
Fix SI-6932 by enabling linearization of callback execution for the internal execution context of Future
Diffstat (limited to 'src/library/scala/concurrent/Future.scala')
-rw-r--r-- | src/library/scala/concurrent/Future.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/scala/concurrent/Future.scala b/src/library/scala/concurrent/Future.scala index 4b9e74708d..36f3be341f 100644 --- a/src/library/scala/concurrent/Future.scala +++ b/src/library/scala/concurrent/Future.scala @@ -675,9 +675,9 @@ object Future { // by just not ever using it itself. scala.concurrent // doesn't need to create defaultExecutionContext as // a side effect. - private[concurrent] object InternalCallbackExecutor extends ExecutionContext { - override def execute(runnable: Runnable): Unit = - runnable.run() + private[concurrent] object InternalCallbackExecutor extends ExecutionContext with BatchingExecutor { + override protected def unbatchedExecute(r: Runnable): Unit = + r.run() override def reportFailure(t: Throwable): Unit = throw new IllegalStateException("problem in scala.concurrent internal callback", t) } |