#1842 - Documenting initial behavior

This commit is contained in:
Viktor Klang 2012-02-21 12:03:14 +01:00
parent bd0b4a149e
commit 445ffa3a7d

View file

@ -66,6 +66,11 @@ 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
-------