From fe19318495b906a6afa305a711341d6245f92dc3 Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Sun, 23 Sep 2012 00:24:01 +0200 Subject: [PATCH] Removing warning about not touching instance fields in receive --- akka-docs/rst/general/actors.rst | 5 ----- akka-docs/rst/scala/actors.rst | 7 +------ 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/akka-docs/rst/general/actors.rst b/akka-docs/rst/general/actors.rst index ca940daadc..b6fe3d19d4 100644 --- a/akka-docs/rst/general/actors.rst +++ b/akka-docs/rst/general/actors.rst @@ -66,11 +66,6 @@ behavior logic, or the function itself may be swapped out at runtime, see the during construction of the actor object is special in the sense that a restart of the actor will reset its behavior to this initial one. -.. note:: - The initial behavior of an Actor is extracted prior to constructor is run, - so if you want to base your initial behavior on member state, you should - use ``become`` in the constructor. - Mailbox ------- diff --git a/akka-docs/rst/scala/actors.rst b/akka-docs/rst/scala/actors.rst index 519e3dae66..88559939e6 100644 --- a/akka-docs/rst/scala/actors.rst +++ b/akka-docs/rst/scala/actors.rst @@ -54,12 +54,7 @@ published to the ``ActorSystem``'s ``EventStream``. The result of the :meth:`receive` method is a partial function object, which is stored within the actor as its “initial behavior”, see `Become/Unbecome`_ for further information on changing the behavior of an actor after its -construction. - -.. note:: - The initial behavior of an Actor is extracted prior to constructor is run, - so if you want to base your initial behavior on member state, you should - use ``become`` in the constructor. +construction. Creating Actors with default constructor ----------------------------------------