Skip to content

Commit

Permalink
Update gen_server.ex
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed May 5, 2015
1 parent 087c25b commit a046383
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/elixir/lib/gen_server.ex
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ defmodule GenServer do
* http://learnyousomeerlang.com/clients-and-servers
"""

# TODO: We should change GenServer.init/1 to return {:error, reason}
# instead of {:stop, reason} in order to mimic the return value. Of
# course, we should still support {:stop, reason} for Erlang compat.

@typedoc "Return values of `start*` functions"
@type on_start :: {:ok, pid} | :ignore | {:error, {:already_started, pid} | term}

Expand Down

0 comments on commit a046383

Please sign in to comment.