Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions lib/elixir/lib/gen_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,13 @@ defmodule GenServer do
@typedoc "Debug options supported by the `start*` functions"
@type debug :: [:trace | :log | :statistics | {:log_to_file, Path.t()}]

@typedoc "The server reference"
@type server :: pid | name | {atom, node}
@typedoc """
The server reference.

This is either a plain PID or a value representing a registered name.
See the "Name registration" section of this document for more information.
"""
@type server :: pid | name | {atom, node} | {:via, registry :: module(), key :: term()}

@typedoc """
Tuple describing the client of a call request.
Expand Down Expand Up @@ -1022,6 +1027,9 @@ defmodule GenServer do
not yet connected to the caller one, the semantics differ
depending on the used Erlang/OTP version.

`server` can be any of the values described in the "Name registration"
section of the documentation for this module.

Before Erlang/OTP 21, the call is going to block until a
connection happens. This was done to guarantee ordering.
Starting with Erlang/OTP 21, both Erlang and Elixir do
Expand Down