View Source Protean.Guard protocol (Protean v0.1.0-alpha.2)

Protocol for guarded transitions, actions, etc.

Default implementations are provided for:

  • BitString - Call callback module with string, context, and event
  • Atom - Call callback module with atom, context, and event
  • Function - Call function with context and event
  • Tuple - Higher-order guard utilities:

Link to this section Summary

Link to this section Types

Link to this section Functions

Link to this function

allows?(guard, context, event, module)

View Source
@spec allows?(t(), Protean.Context.t(), Protean.event(), callback_module :: module()) ::
  boolean()