Hemdal.Event.Mock (Hemdal v1.0.2)
View SourceConsume the events generated by the system and send all of these events
to the process which run start_link/0
. The even is Hemdal.Event.t()
.
Summary
Functions
It is starting a consumer, linked to the caller process, and sending all of the events to the caller process.
Stop the consumer, while it's linked to the caller process it's a good idea to stop it.
Functions
@spec start_link() :: {:ok, pid()}
It is starting a consumer, linked to the caller process, and sending all of the events to the caller process.
@spec stop(GenServer.server()) :: :ok
Stop the consumer, while it's linked to the caller process it's a good idea to stop it.