add_handler/4 is an Erlang function exported by "age" module. This function registers an event Controller to respond to particular group of events named with Type parameter. Parameter Controller is a selector to a compiled module implemented in accordance with the requirements of the age_event behavior. Parameter Type is an identifier of the Module accessible by the Agent of the current Node. Optionally, you can specify a custom process to receive age_event messages. By default this is the calling process returned by self() function. |
|
|