Antenna.Matcher behaviour (antenna v0.5.1)
View SourceThe 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
Callbacks
The funcion to be called back upon match
Functions
Returns a specification to start this module under a supervisor.
Types
@type t() :: module()
The module implementing handle_match/2
callback
Callbacks
@callback handle_match(channel :: Antenna.channel(), event :: Antenna.event()) :: term()
The funcion to be called back upon match
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.