Merge pull request #731 from akka/wip-2527-√
Removing warning about not touching instance fields in receive
This commit is contained in:
commit
4e4acef959
2 changed files with 1 additions and 11 deletions
|
|
@ -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
|
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.
|
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
|
Mailbox
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -54,12 +54,7 @@ published to the ``ActorSystem``'s ``EventStream``.
|
||||||
The result of the :meth:`receive` method is a partial function object, which is
|
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
|
stored within the actor as its “initial behavior”, see `Become/Unbecome`_ for
|
||||||
further information on changing the behavior of an actor after its
|
further information on changing the behavior of an actor after its
|
||||||
construction.
|
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.
|
|
||||||
|
|
||||||
Creating Actors with default constructor
|
Creating Actors with default constructor
|
||||||
----------------------------------------
|
----------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue