From 4084c017a36f3dd1c611d3eeef98e6e89a21bd07 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Wed, 7 Dec 2011 13:30:56 +0100 Subject: [PATCH] Adding docs to clarify that restarting resets the actor to the original behavior --- akka-docs/scala/actors.rst | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/akka-docs/scala/actors.rst b/akka-docs/scala/actors.rst index 02bbc34012..4e54c58ecb 100644 --- a/akka-docs/scala/actors.rst +++ b/akka-docs/scala/actors.rst @@ -487,6 +487,10 @@ Both of these takes a ``ActorRef => PartialFunction[Any, Unit]`` that implements the new message handler. The hotswapped code is kept in a Stack which can be pushed and popped. +.. warning:: + + Please note that the actor will revert to its original behavior when restarted by its Supervisor. + To hotswap the Actor body using the ``HotSwap`` message: .. code-block:: scala