An event-based actor with managed state. More...
|stateful_actor (actor_config &cfg, Ts &&...xs)|
|void||on_exit () final|
|Destroys the state of this actor (no further overriding allowed). |
|const char *||name () const final|
|error||save_state (serializer &sink, unsigned int version) override|
|error||load_state (deserializer &source, unsigned int version) override|
|A reference to the actor's state. |
An event-based actor with managed state.
The state is constructed before
make_behavior will get called and destroyed after the actor called
quit. This state management brakes cycles and allows actors to automatically release ressources as soon as possible.