tg_client v0.1.2 TgClient.Event.ManagerWatcher

Worker for creation/monitoring GenEvent manager and registration event handler.

Summary

Functions

Send sync notification to handler

handles EXIT messages from the GenEvent handler and restarts it

inits the GenServer by starting a new handler

Push event to GenEvent handler

Starts EventManagerWatcher

Functions

handle_call(msg, from, state)

Send sync notification to handler

handle_info(arg1, state)

handles EXIT messages from the GenEvent handler and restarts it

init(args)

inits the GenServer by starting a new handler

push_event(pid, event)

Specs

push_event(pid, map) :: :ok | {:error, term}

Push event to GenEvent handler

start_link(args)

Specs

start_link(any) :: GenServer.on_start

Starts EventManagerWatcher