Merge pull request #649 from bjornharrtell/patch-4
Add warning about passing mutable state into the constructor of an Actor
This commit is contained in:
commit
b404d75521
1 changed files with 5 additions and 0 deletions
|
|
@ -108,6 +108,11 @@ Here is an example:
|
|||
meaning of an actor restart, which is described here:
|
||||
:ref:`supervision-restart`.
|
||||
|
||||
.. warning::
|
||||
|
||||
Also avoid passing mutable state into the constructor of the Actor, since
|
||||
the call-by-name block can be executed by another thread.
|
||||
|
||||
Props
|
||||
-----
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue