3 ms·
> Akka FSMs have a whenUnhandled state which can handle any event that your FSMs don't explicitly handle. Erlang's gen_fsm has that too: http://erlang.org/doc
by rdtsc 11y ago
> Akka FSMs have a whenUnhandled state which can handle any event that your FSMs don't explicitly handle.
Erlang's gen_fsm has that too:
http://erlang.org/doc/man/gen_fsm.html#Module:handle_event-3 http://erlang.org/doc/man/gen_fsm.html#Module:handle_event-3
However that is a dangerous anti-pattern usually. More often than not, I want the actor to crash and have a proper trace and notification of it most of the time than have it go to some unspecified state and hang around forever in that broken state.