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
4 changes: 3 additions & 1 deletion lib/elixir/lib/gen_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,8 @@ defmodule GenServer do
a name on start via the `:name` option. Registered names are also
automatically cleaned up on termination. The supported values are:

* `nil` (default) - the GenServer is not registered with a name.

* an atom - the GenServer is registered locally (to the current node)
with the given name using `Process.register/2`.

Expand Down Expand Up @@ -858,7 +860,7 @@ defmodule GenServer do
@type on_start :: {:ok, pid} | :ignore | {:error, {:already_started, pid} | term}

@typedoc "The GenServer name"
@type name :: atom | {:global, term} | {:via, module, term}
@type name :: nil | atom | {:global, term} | {:via, module, term}

@typedoc "Options used by the `start*` functions"
@type options :: [option]
Expand Down
Loading