   """
 
   use GenStage
+  require Logger
 
   @typedoc """
   Holds the internal state of the `EventCenter`.

 @doc "Starts the EventCenter registered with the module's name."
 @spec start_link() :: {:ok, pid}
 def start_link() do
   GenStage.start_link(__MODULE__, :ok, name: name())
 end
 @doc """


 @doc "Sends an event and returns only after the event is dispatched."
 @spec sync_notify(any, pos_integer | :infinity) :: :ok
 @spec sync_notify(pid | atom | {atom, any}, any, pos_integer | :infinity) :: :ok
 def sync_notify(pid \\ name(), event, timeout \\ 5000) do
   Logger.debug("Sent sync_notify to Stage #{inspect pid} with event: #{inspect event}")
   GenStage.call(pid, {:notify, event}, timeout)
 end

