@@ -67,37 +67,6 @@ defmodule GenEvent do
67
67
all 6 callbacks for you, leaving it up to you to implement the ones
68
68
you want to customize.
69
69
70
- * `handle_call(msg, state)` - invoked when a `call/3` is done to a specific
71
- handler.
72
-
73
- It must return:
74
-
75
- - `{:ok, reply, new_state}`
76
- - `{:ok, reply, new_state, :hibernate}`
77
- - `{:remove_handler, reply}`
78
-
79
- * `handle_info(msg, state)` - invoked to handle all other messages which
80
- are received by the process. Must return the same values as
81
- `handle_event/2`.
82
-
83
- * `terminate(reason, state)` - called when the event handler is removed or
84
- the event manager is terminating. It can return any term.
85
-
86
- The reason is one of:
87
-
88
- - `:stop` - manager is terminating
89
- - `{:stop, reason}` - monitored process terminated (for monitored handlers)
90
- - `:remove_handler` - handler is being removed
91
- - `{:error, term}` - handler crashed or returned a bad value
92
- - `term` - any term passed to functions like `GenEvent.remove_handler/3`
93
-
94
- * `code_change(old_vsn, state, extra)` - called when the application
95
- code is being upgraded live (hot code swapping).
96
-
97
- It must return:
98
-
99
- - `{:ok, new_state}`
100
-
101
70
## Name Registration
102
71
103
72
A GenEvent is bound to the same name registration rules as a `GenServer`.
0 commit comments