Skip to content

Commit

Permalink
Add documentation on returning via throw
Browse files Browse the repository at this point in the history
  • Loading branch information
bucko909 committed Jun 6, 2022
1 parent 0b2522a commit 1c3444c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/stdlib/doc/src/gen_server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ gen_server:abcast -----> Module:handle_cast/2
- -----> Module:code_change/3</pre>

<p>If a callback function fails or returns a bad value, the
<c>gen_server</c> process terminates.</p>
<c>gen_server</c> process terminates. However, if a callback function
raises a <c>throw</c> exception, the callback will be treated as if
it succeeded and returned the exception's exit reason.</p>

<p>A <c>gen_server</c> process handles system messages as described in
<seeerl marker="sys"><c>sys(3)</c></seeerl>. The <c>sys</c> module
Expand Down

0 comments on commit 1c3444c

Please sign in to comment.