=act #3800: Add timeout value in AskTimeoutException message.
This commit is contained in:
parent
e25455e935
commit
4c2eb74c78
2 changed files with 9 additions and 1 deletions
|
|
@ -330,7 +330,7 @@ private[akka] object PromiseActorRef {
|
|||
val a = new PromiseActorRef(provider, result)
|
||||
implicit val ec = a.internalCallingThreadExecutionContext
|
||||
val f = scheduler.scheduleOnce(timeout.duration) {
|
||||
result tryComplete Failure(new AskTimeoutException(s"Ask timed out on [$targetName]"))
|
||||
result tryComplete Failure(new AskTimeoutException(s"Ask timed out on [$targetName] after [${timeout.duration.toMillis} ms]"))
|
||||
}
|
||||
result.future onComplete { _ ⇒ try a.stop() finally f.cancel() }
|
||||
a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue