Initial work in moving to scala.concurrent.Await + Awaitable

This commit is contained in:
Viktor Klang 2012-06-29 16:06:26 +02:00
parent 1f6f2c1897
commit 0bf45a9403
87 changed files with 170 additions and 260 deletions

View file

@ -15,6 +15,7 @@ import akka.dispatch.{ MailboxType, TaskInvocation, SystemMessage, Suspend, Resu
import scala.concurrent.util.duration.intToDurationInt
import akka.util.{ Switch, NonFatal }
import scala.concurrent.util.Duration
import scala.concurrent.Awaitable
import akka.actor.ActorContext
import akka.dispatch.MessageQueue
@ -207,6 +208,8 @@ class CallingThreadDispatcher(
protected[akka] override def executeTask(invocation: TaskInvocation) { invocation.run }
override def internalBlockingCall[T](awaitable: Awaitable[T], atMost: Duration): T = awaitable.result(atMost)(scala.concurrent.impl.InternalFutureUtil.canAwaitEvidence)
/*
* This method must be called with this thread's queue, which must already
* have been entered (active). When this method returns, the queue will be