+doc,java document the PatternsCS.ask
This commit is contained in:
parent
76a9942985
commit
9deb44a3e2
1 changed files with 4 additions and 0 deletions
|
|
@ -519,6 +519,10 @@ involves creating an internal actor for handling this reply, which needs to
|
||||||
have a timeout after which it is destroyed in order not to leak resources; see
|
have a timeout after which it is destroyed in order not to leak resources; see
|
||||||
more below.
|
more below.
|
||||||
|
|
||||||
|
.. note::
|
||||||
|
A Java 8 variant of the ``ask`` pattern that returns a ``CompletionStage`` instead of a Scala ``Future``
|
||||||
|
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 send a Failure message to the sender.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue