Initial work in moving to scala.concurrent.Await + Awaitable
This commit is contained in:
parent
1f6f2c1897
commit
0bf45a9403
87 changed files with 170 additions and 260 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue