+doc more details on akka.actor.Status support in ask (#23463)
This commit is contained in:
parent
a95a94acff
commit
8cbc3b5570
1 changed files with 6 additions and 2 deletions
|
|
@ -745,9 +745,13 @@ is available in the `akka.pattern.PatternsCS` object.
|
|||
|
||||
@@@ warning
|
||||
|
||||
To complete the future with an exception you need send a Failure message to the sender.
|
||||
To complete the future with an exception you need to send an `akka.actor.Status.Failure` message to the sender.
|
||||
This is *not done automatically* when an actor throws an exception while processing a message.
|
||||
|
||||
Please note that Scala's `Try` sub types `scala.util.Failure` and `scala.util.Success` are not treated
|
||||
specially, and would complete the ask Future with the given value - only the `akka.actor.Status` messages
|
||||
are treated specially by the ask pattern.
|
||||
|
||||
@@@
|
||||
|
||||
Scala
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue