Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
10 lines (6 sloc) 337 Bytes

gen_event_forwarder

gen_event_forwarder is a simple gen_event handler that will forward events and infos to a designated process. It is primarily intended to be used for testing purposes.

Use:

    {ok, EventMgr} = gen_event:start_link(),
    gen_event:add_handler(EventMgr, gen_event_forwarder, [self()]),