Start migrating Future to use Actor.Timeout, including support for never timing out. More testing and optimization still needed

This commit is contained in:
Derek Williams 2011-06-18 23:23:47 -06:00
parent daab5bdbcd
commit e639b2c74d
3 changed files with 88 additions and 54 deletions

View file

@ -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)