Start migrating Future to use Actor.Timeout, including support for never timing out. More testing and optimization still needed
This commit is contained in:
parent
daab5bdbcd
commit
e639b2c74d
3 changed files with 88 additions and 54 deletions
|
|
@ -90,7 +90,7 @@ trait MessageDispatcher {
|
|||
dispatch(invocation)
|
||||
}
|
||||
|
||||
private[akka] final def dispatchFuture[T](block: () ⇒ T, timeout: Long): Future[T] = {
|
||||
private[akka] final def dispatchFuture[T](block: () ⇒ T, timeout: Actor.Timeout): Future[T] = {
|
||||
futures.getAndIncrement()
|
||||
try {
|
||||
val future = new DefaultPromise[T](timeout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue