Permalink
Browse files

Adding FIXME about putting mixed beans in the EC-basket

  • Loading branch information...
1 parent af8416b commit 31771bdc6246c0b5c58ec8ded4d7bb411eb15fff @viktorklang committed Apr 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/library/scala/concurrent/impl/Future.scala
@@ -109,7 +109,7 @@ object Future {
private[impl] def dispatchFuture(executor: ExecutionContext, task: () => Unit, force: Boolean = false): Unit =
_taskStack.get match {
- case stack if (stack ne null) && !force => stack push task
+ case stack if (stack ne null) && !force => stack push task // FIXME we can't mix tasks aimed for different ExecutionContexts see: https://github.com/akka/akka/blob/v2.0.1/akka-actor/src/main/scala/akka/dispatch/Future.scala#L373
case _ => executor.execute(new Runnable {
def run() {
try {

0 comments on commit 31771bd

Please sign in to comment.