Antenna.Matcher behaviour (antenna v0.5.1)

View Source

The behaviour defining matchers in the Antenna pub-sub model.

While the matcher might be a simple function, or a process identifier, using this behaviour would have your testing process simplified.

Summary

Types

t()

The module implementing handle_match/2 callback

Callbacks

The funcion to be called back upon match

Functions

Returns a specification to start this module under a supervisor.

Types

t()

@type t() :: module()

The module implementing handle_match/2 callback

Callbacks

handle_match(channel, event)

@callback handle_match(channel :: Antenna.channel(), event :: Antenna.event()) :: term()

The funcion to be called back upon match

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.