File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -717,8 +717,13 @@ defmodule GenServer do
717717 @ typedoc "Debug options supported by the `start*` functions"
718718 @ type debug :: [ :trace | :log | :statistics | { :log_to_file , Path . t ( ) } ]
719719
720- @ typedoc "The server reference"
721- @ type server :: pid | name | { atom , node }
720+ @ typedoc """
721+ The server reference.
722+
723+ This is either a plain PID or a value representing a registered name.
724+ See the "Name registration" section of this document for more information.
725+ """
726+ @ type server :: pid | name | { atom , node } | { :via , registry :: module ( ) , key :: term ( ) }
722727
723728 @ typedoc """
724729 Tuple describing the client of a call request.
@@ -1022,6 +1027,9 @@ defmodule GenServer do
10221027 not yet connected to the caller one, the semantics differ
10231028 depending on the used Erlang/OTP version.
10241029
1030+ `server` can be any of the values described in the "Name registration"
1031+ section of the documentation for this module.
1032+
10251033 Before Erlang/OTP 21, the call is going to block until a
10261034 connection happens. This was done to guarantee ordering.
10271035 Starting with Erlang/OTP 21, both Erlang and Elixir do
You can’t perform that action at this time.
0 commit comments