Adding docs to clarify that restarting resets the actor to the original behavior

This commit is contained in:
Viktor Klang 2011-12-07 13:30:56 +01:00
parent cde4576cc7
commit 4084c017a3

View file

@ -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