make FSM.receive overridable, see #2680
This commit is contained in:
parent
8eec825f18
commit
480f5d5683
2 changed files with 9 additions and 1 deletions
|
|
@ -124,6 +124,14 @@ obvious that an actor is actually created:
|
|||
:include: simple-fsm
|
||||
:exclude: fsm-body
|
||||
|
||||
.. note::
|
||||
|
||||
The FSM trait defines a ``receive`` method which handles internal messages
|
||||
and passes everything else through to the FSM logic (according to the
|
||||
current state). When overriding the ``receive`` method, keep in mind that
|
||||
e.g. state timeout handling depends on actually passing the messages through
|
||||
the FSM logic.
|
||||
|
||||
The :class:`FSM` trait takes two type parameters:
|
||||
|
||||
#. the supertype of all state names, usually a sealed trait with case objects
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue