   ## Init callbacks
 
   require Record
-  Record.defrecordp :handler, [:module, :id, :state, :pid, :ref]
+  Record.defrecordp(:handler, [:module, :id, :state, :pid, :ref])
 
   @doc false
   def init_it(starter, :self, name, mod, args, options) do

      def handle_call(msg, state) do
        proc =
          case Process.info(self(), :registered_name) do
            {_, []}   -> self()
            {_, name} -> name
          end

        # We do this to trick Dialyzer to not complain about non-local returns.
        case :erlang.phash2(1, 1) do
          0 -> raise "attempted to call GenEvent #{inspect proc} but no handle_call/2 clause was provided"
          1 -> {:remove_handler, {:bad_call, msg}}
        end
      end


  end

  @doc false
  @spec stream(manager, keyword) :: GenEvent.Stream.t()
  def stream(manager, options \\ []) do
    %GenEvent.Stream{manager: manager, timeout: Keyword.get(options, :timeout, :infinity)}
  end

  @doc false
