Move Timeout into actor package to make more accessible, use overloaded '?' method to handle explicit Timeout

This commit is contained in:
Derek Williams 2011-06-28 15:20:31 -06:00
parent 81b361e6d7
commit ccb8440912
10 changed files with 48 additions and 51 deletions

View file

@ -90,7 +90,7 @@ trait MessageDispatcher {
dispatch(invocation)
}
private[akka] final def dispatchFuture[T](block: () T, timeout: Actor.Timeout): Future[T] = {
private[akka] final def dispatchFuture[T](block: () T, timeout: Timeout): Future[T] = {
futures.getAndIncrement()
try {
val future = new DefaultPromise[T](timeout)