Shutdowns can be any term, closes #9878

This commit is contained in:
José Valim
2020-03-07 00:20:16 +01:00
parent ece5a1ca59
commit b4e0ce55db
+1 -1
View File
@@ -640,7 +640,7 @@ defmodule GenServer do
This callback is optional.
"""
@callback terminate(reason, state :: term) :: term
when reason: :normal | :shutdown | {:shutdown, term}
when reason: :normal | :shutdown | {:shutdown, term} | term
@doc """
Invoked to change the state of the `GenServer` when a different version of a