XFsm.Actor (XFsm v0.5.0)

View Source

Documentation for XFsm.Actor.

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

send(pid, event)

@spec send(GenServer.server(), XFsm.event()) :: :ok

snapshot(pid)

@spec snapshot(GenServer.server()) :: XFsm.Snapshot.t()

start_link(opts \\ [])

@spec start_link(keyword()) :: GenServer.on_start()

subscribe(pid, fun)

@spec subscribe(pid(), (... -> any())) :: reference()

unsubscribe(pid, ref)

@spec unsubscribe(pid(), reference()) :: :ok