From 9deb44a3e2fefa0502179d6392eb2b60edfd440b Mon Sep 17 00:00:00 2001 From: Konrad Malawski Date: Wed, 24 Feb 2016 16:39:14 +0100 Subject: [PATCH] +doc,java document the PatternsCS.ask --- akka-docs/rst/java/untyped-actors.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/akka-docs/rst/java/untyped-actors.rst b/akka-docs/rst/java/untyped-actors.rst index e9a432abcf..3d67f1569c 100644 --- a/akka-docs/rst/java/untyped-actors.rst +++ b/akka-docs/rst/java/untyped-actors.rst @@ -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 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:: To complete the future with an exception you need send a Failure message to the sender.