From c5480cdf94758d0cc119c7c4b921428aa1641d79 Mon Sep 17 00:00:00 2001 From: Roland Date: Mon, 7 May 2012 10:56:03 +0200 Subject: [PATCH] fix system.shutdown() mention in intro --- akka-docs/intro/getting-started-first-java.rst | 6 ++++++ akka-docs/intro/getting-started-first-scala.rst | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/akka-docs/intro/getting-started-first-java.rst b/akka-docs/intro/getting-started-first-java.rst index 9f8544f922..e6deb34217 100644 --- a/akka-docs/intro/getting-started-first-java.rst +++ b/akka-docs/intro/getting-started-first-java.rst @@ -385,6 +385,12 @@ prints the result and shuts down the ``ActorSystem``. .. includecode:: ../../akka-tutorials/akka-tutorial-first/src/main/java/akka/tutorial/first/java/Pi.java#result-listener +Please note that shutting down the actor system should be done by that part of +the application which can safely determine that everything has been said and +done. In this case, it is the Listener actor, but in other scenarios it might +be the main thread or some other external service. It is by no means required +to call ``system.shutdown()`` from within that system. + Bootstrap the calculation ------------------------- diff --git a/akka-docs/intro/getting-started-first-scala.rst b/akka-docs/intro/getting-started-first-scala.rst index 91bed34b78..0b6492314c 100644 --- a/akka-docs/intro/getting-started-first-scala.rst +++ b/akka-docs/intro/getting-started-first-scala.rst @@ -417,6 +417,12 @@ prints the result and shuts down the ``ActorSystem``. .. includecode:: ../../akka-tutorials/akka-tutorial-first/src/main/scala/akka/tutorial/first/scala/Pi.scala#result-listener +Please note that shutting down the actor system should be done by that part of +the application which can safely determine that everything has been said and +done. In this case, it is the Listener actor, but in other scenarios it might +be the main thread or some other external service. It is by no means required +to call ``system.shutdown()`` from within that system. + Bootstrap the calculation =========================