View Source Hemdal.Event.Mock (Hemdal v1.0.0)

Consume 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().

Link to this section 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.

Link to this section 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.