We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eaac2d commit 94221f2Copy full SHA for 94221f2
lib/elixir/lib/gen_server.ex
@@ -640,7 +640,7 @@ defmodule GenServer do
640
This callback is optional.
641
"""
642
@callback terminate(reason, state :: term) :: term
643
- when reason: :normal | :shutdown | {:shutdown, term}
+ when reason: :normal | :shutdown | {:shutdown, term} | term
644
645
@doc """
646
Invoked to change the state of the `GenServer` when a different version of a
0 commit comments