XFsm (XFsm v0.5.0)

View Source

Documentation for XFsm.

Summary

Types

action_arg()

@type action_arg() :: %{optional(:event) => event(), context: context(), self: self()}

callback()

@type callback() ::
  (... -> any()) | atom() | %{:method => atom(), optional(:params) => any()}

context()

@type context() :: nil | map()

event()

@type event() :: %{:type => atom(), optional(atom()) => any()}

self()

@type self() :: %{pid: nil | pid(), state: nil | atom()}