Hemdal.Event.Mock (Hemdal v1.0.3)

View Source

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

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

start_link()

@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.

stop(pid)

@spec stop(GenServer.server()) :: :ok

Stop the consumer, while it's linked to the caller process it's a good idea to stop it.