Skip to content

Commit 344f9d6

Browse files
committed
Remove leftover callback docs from GenEvent
1 parent 64bb812 commit 344f9d6

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

lib/elixir/lib/gen_event.ex

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -67,37 +67,6 @@ defmodule GenEvent do
6767
all 6 callbacks for you, leaving it up to you to implement the ones
6868
you want to customize.
6969
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-
10170
## Name Registration
10271
10372
A GenEvent is bound to the same name registration rules as a `GenServer`.

0 commit comments

Comments
 (0)