Std.ActorBehavior

View source →

Shared compile-time substrate for actor-like abstractions. Both public actor declarations and constrained actors such as fsm supply ordinary checked declarations here; this function emits the final direct BEAM behaviour module without introducing a runtime container or dispatcher.

Functions

  • # fn actor_module(module_name: SynLit, state_type: Syntax, declarations: List(Syntax)) -> Syntax
  • # fn actor_module_raw(module_name: SynLit, declarations: List(Syntax)) -> Syntax
  • # fn application_module(module_name: SynLit, declarations: List(Syntax)) -> Syntax
  • # fn behavior_module(module_name: SynLit, kind: Atom, imports: List(Syntax), declarations: List(Syntax)) -> Syntax
  • # fn state_machine_module(module_name: SynLit, declarations: List(Syntax)) -> Syntax

    An FSM is an actor whose mailbox protocol is constrained by a transition graph. It retains gen_statem's direct wire protocol while sharing the same transparent module-construction path as every other actor family.

  • # fn supervisor_module(module_name: SynLit, declarations: List(Syntax)) -> Syntax