Hacker News new | ask | show | jobs
by rdtsc 3733 days 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

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.