+doc more details on akka.actor.Status support in ask (#23463)

This commit is contained in:
Konrad `ktoso` Malawski 2017-08-09 23:13:43 +09:00 committed by Johan Andrén
parent a95a94acff
commit 8cbc3b5570

View file

@ -745,9 +745,13 @@ is available in the `akka.pattern.PatternsCS` object.
@@@ warning @@@ 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. 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 Scala