This is also similar to how the actor model subscr...
# coroutines
r
This is also similar to how the actor model subscribes with partial functions to certain inputs to produce an output or perform an effect. Akka has a pretty good impl of FSM http://doc.akka.io/docs/akka/2.5.4/scala/fsm.html