Super-simple generic synchronous event handler.
This module differs from gen_event
in several significant
ways:
fun/2
notify
Event handlers are passed the state, initially given by the cause of the event. Each handler may return:
{ok, NewState}
to change the state and continue processing
this event with other handlers;{done, NewState}
to change the state and cancel the processing
of the other handlers; or{error, Error}
to indicate an error occurred.add_handler/4 | |
add_handlers/2 | |
new_manager/1 | |
notify/4 | |
test/0 |
add_handler() -> term()
add_handlers() -> term()
new_manager() -> term()
notify() -> term()
test() -> term()
Generated by EDoc, Dec 25 2007, 02:37:22.