ExEventBus.Event (ExEventBus v0.3.0)
View SourceDefines macros to define events
Summary
Functions
Returns true if term
is an ExEventBus.Event; otherwise returns false
.
Allowed in guard tests.
Returns true if term
is an ExEventBus.Event of name
; otherwise returns false
.
Allowed in guard tests.
Types
Functions
Returns true if term
is an ExEventBus.Event; otherwise returns false
.
Allowed in guard tests.
Examples
iex> is_event(%MyEvent{})
true
iex> is_event(%{})
false
Returns true if term
is an ExEventBus.Event of name
; otherwise returns false
.
Allowed in guard tests.
Examples
iex> is_event(%MyEvent{}, MyEvent)
true
iex> is_event(%MyEvent{}, Macro.Env)
false