Move Timeout into actor package to make more accessible, use overloaded '?' method to handle explicit Timeout
This commit is contained in:
parent
81b361e6d7
commit
ccb8440912
10 changed files with 48 additions and 51 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue